diff options
| -rw-r--r-- | meta/recipes-devtools/tcf-agent/tcf-agent/tcf-agent.service | 10 | ||||
| -rw-r--r-- | meta/recipes-devtools/tcf-agent/tcf-agent_git.bb | 8 |
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] | ||
| 2 | Description=Target Communication Framework agent | ||
| 3 | After=network.target | ||
| 4 | |||
| 5 | [Service] | ||
| 6 | Type=forking | ||
| 7 | ExecStart=@SBINDIR@/tcf-agent -d -L- -l0 | ||
| 8 | |||
| 9 | [Install] | ||
| 10 | WantedBy=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" | |||
| 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 | ||
