diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2014-04-23 17:40:53 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-04-24 17:55:15 +0100 |
commit | 40fd8e64acc0f3f9571d2a96b4fa15b985d8e244 (patch) | |
tree | 697efc8c0338f7a06c1319a3b68755d6f32b018e /meta/recipes-devtools/tcf-agent/tcf-agent_git.bb | |
parent | 870a3169d62e3b72d4baf3923b94b56c3deb71ae (diff) | |
download | poky-40fd8e64acc0f3f9571d2a96b4fa15b985d8e244.tar.gz |
tcf-agent: add systemd support
Add systemd unit file tcf-agent.service.
(From OE-Core rev: 1a4feebf98780f586bf2e81cf9844e6805a50799)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/tcf-agent/tcf-agent_git.bb')
-rw-r--r-- | meta/recipes-devtools/tcf-agent/tcf-agent_git.bb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/meta/recipes-devtools/tcf-agent/tcf-agent_git.bb b/meta/recipes-devtools/tcf-agent/tcf-agent_git.bb index 1eb0021eec..616a6a7a9a 100644 --- a/meta/recipes-devtools/tcf-agent/tcf-agent_git.bb +++ b/meta/recipes-devtools/tcf-agent/tcf-agent_git.bb | |||
@@ -12,6 +12,7 @@ PR = "r2" | |||
12 | SRC_URI = "git://git.eclipse.org/gitroot/tcf/org.eclipse.tcf.agent.git \ | 12 | SRC_URI = "git://git.eclipse.org/gitroot/tcf/org.eclipse.tcf.agent.git \ |
13 | file://fix_ranlib.patch \ | 13 | file://fix_ranlib.patch \ |
14 | file://tcf-agent.init \ | 14 | file://tcf-agent.init \ |
15 | file://tcf-agent.service \ | ||
15 | " | 16 | " |
16 | 17 | ||
17 | DEPENDS = "util-linux openssl" | 18 | DEPENDS = "util-linux openssl" |
@@ -19,7 +20,9 @@ RDEPENDS_${PN} = "bash" | |||
19 | 20 | ||
20 | S = "${WORKDIR}/git" | 21 | S = "${WORKDIR}/git" |
21 | 22 | ||
22 | inherit update-rc.d | 23 | inherit update-rc.d systemd |
24 | |||
25 | SYSTEMD_SERVICE_${PN} = "tcf-agent.service" | ||
23 | 26 | ||
24 | INITSCRIPT_NAME = "tcf-agent" | 27 | INITSCRIPT_NAME = "tcf-agent" |
25 | INITSCRIPT_PARAMS = "start 99 3 5 . stop 20 0 1 2 6 ." | 28 | INITSCRIPT_PARAMS = "start 99 3 5 . stop 20 0 1 2 6 ." |
@@ -44,5 +47,8 @@ do_install() { | |||
44 | oe_runmake install INSTALLROOT=${D} | 47 | oe_runmake install INSTALLROOT=${D} |
45 | install -d ${D}${sysconfdir}/init.d/ | 48 | install -d ${D}${sysconfdir}/init.d/ |
46 | install -m 0755 ${WORKDIR}/tcf-agent.init ${D}${sysconfdir}/init.d/tcf-agent | 49 | install -m 0755 ${WORKDIR}/tcf-agent.init ${D}${sysconfdir}/init.d/tcf-agent |
50 | install -d ${D}${systemd_unitdir}/system | ||
51 | install -m 0644 ${WORKDIR}/tcf-agent.service ${D}${systemd_unitdir}/system | ||
52 | sed -i -e 's,@SBINDIR@,${sbindir},g' ${D}${systemd_unitdir}/system/tcf-agent.service | ||
47 | } | 53 | } |
48 | 54 | ||