mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-04 14:39:54 +00:00
opensaf: make sure /etc/init.d/opensafd exist
when disable sysvinit and specify "systemd" in DISTRO_FEATURES,
the recipe "inhert systemd" will delete "/etc/init.d/opensafd",but
"/etc/init.d/opensafd" is needed to start opensafd.service.
Signed-off-by: Dai Caiyun <daicy.fnst@cn.fujitsu.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
This commit is contained in:
committed by
Joe MacDonald
parent
35326fa74d
commit
e86c7ef20f
@@ -55,9 +55,19 @@ do_install_append() {
|
||||
install -m 0644 ${B}/contrib/plmc/config/*.service ${D}/${systemd_unitdir}/system
|
||||
}
|
||||
|
||||
FILES_${PN} += "${localstatedir}/run"
|
||||
FILES_${PN} += "${localstatedir}/run ${systemd_unitdir}/system/*.service"
|
||||
FILES_${PN}-staticdev += "${PKGLIBDIR}/*.a"
|
||||
|
||||
INSANE_SKIP_${PN} = "dev-so"
|
||||
|
||||
RDEPENDS_${PN} += "bash python"
|
||||
|
||||
do_sysvinit_install() {
|
||||
if [ ! -d "${D}${sysconfdir}/init.d" ]; then
|
||||
install -d ${D}${sysconfdir}/init.d
|
||||
install -m 0755 ${B}/osaf/services/infrastructure/nid/scripts/opensafd ${D}${sysconfdir}/init.d/
|
||||
fi
|
||||
}
|
||||
|
||||
addtask sysvinit_install after do_install before do_package
|
||||
|
||||
|
||||
Reference in New Issue
Block a user