sm-api: add missing install systemd unit files
Signed-off-by: Babak Sarashki <Babak.SarAshki@windriver.com>
This commit is contained in:
parent
65f4096f14
commit
d8edb8c3e6
|
@ -13,3 +13,19 @@ RDEPENDS_${PN}_append = " \
|
|||
mtce-pmon \
|
||||
"
|
||||
inherit setuptools
|
||||
SYSTEMD_PACKAGES += "sm-api"
|
||||
SYSTEMD_SERVICE_sm-api = "sm-api.service"
|
||||
SYSTEMD_AUTO_ENABLE_sm-api = "enable"
|
||||
|
||||
do_install_append () {
|
||||
install -d -m 0755 ${D}/${sysconfdir}/sm
|
||||
install -d -m 0755 ${D}/${sysconfdir}/init.d
|
||||
install -d -m 0755 ${D}/${sysconfdir}/pmon.d
|
||||
install -d -m 0755 ${D}/${sysconfdir}/sm-api
|
||||
install -d -m 0755 ${D}/${systemd_system_unitdir}
|
||||
install -m 644 scripts/sm_api.ini ${D}/${sysconfdir}/sm
|
||||
install -m 755 scripts/sm-api ${D}/${sysconfdir}/init.d
|
||||
install -m 644 scripts/sm-api.service ${D}/${systemd_system_unitdir}
|
||||
install -m 644 scripts/sm-api.conf ${D}/${sysconfdir}/pmon.d
|
||||
install -m 644 etc/sm-api/policy.json ${D}/${sysconfdir}/sm-api
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue