mirror of
https://git.yoctoproject.org/meta-ti
synced 2026-01-12 01:20:20 +00:00
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>
This commit is contained in:
@@ -28,15 +28,11 @@ do_install() {
|
||||
install -c -m 755 ${S}/bin/mpmsrv ${D}${bindir}/mpmsrv
|
||||
install -c -m 755 ${S}/bin/mpmcl ${D}${bindir}/mpmcl
|
||||
|
||||
systemd_enabled=${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '1', '0', d)}
|
||||
if [ ${systemd_enabled} -eq 1 ]
|
||||
then
|
||||
install -d ${D}${systemd_system_unitdir}
|
||||
install -m 0644 ${WORKDIR}/mpmsrv-daemon.service ${D}${systemd_system_unitdir}
|
||||
else
|
||||
install -d ${D}${sysconfdir}/init.d/
|
||||
install -c -m 755 ${S}/scripts/mpmsrv-daemon.sh ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}
|
||||
fi
|
||||
install -d ${D}${systemd_system_unitdir}
|
||||
install -m 0644 ${WORKDIR}/mpmsrv-daemon.service ${D}${systemd_system_unitdir}
|
||||
install -d ${D}${sysconfdir}/init.d/
|
||||
install -c -m 755 ${S}/scripts/mpmsrv-daemon.sh ${D}${sysconfdir}/init.d/${INITSCRIPT_NAME}
|
||||
|
||||
install -d ${D}${sysconfdir}/mpm/
|
||||
install -c -m 755 ${S}/scripts/crash_callback.sh ${D}${sysconfdir}/mpm/crash_callback.sh
|
||||
|
||||
|
||||
Reference in New Issue
Block a user