summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenys Dmytriyenko <denys@ti.com>2019-01-29 01:42:10 +0000
committerDenys Dmytriyenko <denys@ti.com>2019-01-28 20:47:36 +0000
commiteacaf4cf524d3ba8f14cd2b124e52793ef24ec65 (patch)
treecbaa73391380bbced4a0e1f382cefc30c052092d
parentcf5c550dc9306bf281562b2225c3cc281246854a (diff)
downloadmeta-ti-eacaf4cf524d3ba8f14cd2b124e52793ef24ec65.tar.gz
multiprocmgr: install both mpmsrv sysvinit initscript and systemd unit file
Since both systemd and update-rc.d classes are inherited, not having a corresponding file results in postinst function to fail, which is a hard error now. Having both init files installed does not affect functionality. Signed-off-by: Denys Dmytriyenko <denys@ti.com>
-rw-r--r--recipes-ti/multiprocmgr/multiprocmgr_git.bb14
1 files changed, 5 insertions, 9 deletions
diff --git a/recipes-ti/multiprocmgr/multiprocmgr_git.bb b/recipes-ti/multiprocmgr/multiprocmgr_git.bb
index f37b97e3..6143341d 100644
--- a/recipes-ti/multiprocmgr/multiprocmgr_git.bb
+++ b/recipes-ti/multiprocmgr/multiprocmgr_git.bb
@@ -28,15 +28,11 @@ do_install() {
28 install -c -m 755 ${S}/bin/mpmsrv ${D}${bindir}/mpmsrv 28 install -c -m 755 ${S}/bin/mpmsrv ${D}${bindir}/mpmsrv
29 install -c -m 755 ${S}/bin/mpmcl ${D}${bindir}/mpmcl 29 install -c -m 755 ${S}/bin/mpmcl ${D}${bindir}/mpmcl
30 30
31 systemd_enabled=${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '1', '0', d)} 31 install -d ${D}${systemd_system_unitdir}
32 if [ ${systemd_enabled} -eq 1 ] 32 install -m 0644 ${WORKDIR}/mpmsrv-daemon.service ${D}${systemd_system_unitdir}
33 then 33 install -d ${D}${sysconfdir}/init.d/
34 install -d ${D}${systemd_system_unitdir} 34 install -c -m 755 ${S}/scripts/mpmsrv-daemon.sh ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}
35 install -m 0644 ${WORKDIR}/mpmsrv-daemon.service ${D}${systemd_system_unitdir} 35
36 else
37 install -d ${D}${sysconfdir}/init.d/
38 install -c -m 755 ${S}/scripts/mpmsrv-daemon.sh ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}
39 fi
40 install -d ${D}${sysconfdir}/mpm/ 36 install -d ${D}${sysconfdir}/mpm/
41 install -c -m 755 ${S}/scripts/crash_callback.sh ${D}${sysconfdir}/mpm/crash_callback.sh 37 install -c -m 755 ${S}/scripts/crash_callback.sh ${D}${sysconfdir}/mpm/crash_callback.sh
42 38