summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-devtools/tcf-agent/tcf-agent/tcf-agent.service10
-rw-r--r--meta/recipes-devtools/tcf-agent/tcf-agent_git.bb8
2 files changed, 17 insertions, 1 deletions
diff --git a/meta/recipes-devtools/tcf-agent/tcf-agent/tcf-agent.service b/meta/recipes-devtools/tcf-agent/tcf-agent/tcf-agent.service
new file mode 100644
index 0000000000..5d7a586682
--- /dev/null
+++ b/meta/recipes-devtools/tcf-agent/tcf-agent/tcf-agent.service
@@ -0,0 +1,10 @@
1[Unit]
2Description=Target Communication Framework agent
3After=network.target
4
5[Service]
6Type=forking
7ExecStart=@SBINDIR@/tcf-agent -d -L- -l0
8
9[Install]
10WantedBy=multi-user.target \ No newline at end of file
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"
12SRC_URI = "git://git.eclipse.org/gitroot/tcf/org.eclipse.tcf.agent.git \ 12SRC_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
17DEPENDS = "util-linux openssl" 18DEPENDS = "util-linux openssl"
@@ -19,7 +20,9 @@ RDEPENDS_${PN} = "bash"
19 20
20S = "${WORKDIR}/git" 21S = "${WORKDIR}/git"
21 22
22inherit update-rc.d 23inherit update-rc.d systemd
24
25SYSTEMD_SERVICE_${PN} = "tcf-agent.service"
23 26
24INITSCRIPT_NAME = "tcf-agent" 27INITSCRIPT_NAME = "tcf-agent"
25INITSCRIPT_PARAMS = "start 99 3 5 . stop 20 0 1 2 6 ." 28INITSCRIPT_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