ceph-manager: fix the path for init script

sm looks for init script ceph-manager in /etc/init.d instead
of /etc/rc.d/init.d, so fix the path will fix the following error:

ERROR: sm[78078]: sm_service_action.c(707): Service (ceph-manager)
plugin (/etc/init.d/ceph-manager) access failed, error=No such file or
directory.

Partial-Bug: 1897685

Change-Id: I47b7ffd059960722d72ee68a24d9a2ed0c985989
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
This commit is contained in:
Jackie Huang 2020-09-29 15:29:36 +08:00
parent 8f842934b6
commit 9fd5c1843d

View File

@ -37,12 +37,12 @@ do_restore_files() {
do_install_append() { do_install_append() {
install -d -m0755 ${D}/${bindir} install -d -m0755 ${D}/${bindir}
install -d -m0755 ${D}/${sysconfdir}/rc.d/init.d install -d -m0755 ${D}/${sysconfdir}/init.d
install -d -m0755 ${D}/${sysconfdir}/logrotate.d install -d -m0755 ${D}/${sysconfdir}/logrotate.d
install -d -m0755 ${D}/${systemd_system_unitdir} install -d -m0755 ${D}/${systemd_system_unitdir}
install -p -m0700 ${S}/ceph/ceph-manager/scripts/bin/ceph-manager ${D}/${bindir} install -p -m0700 ${S}/ceph/ceph-manager/scripts/bin/ceph-manager ${D}/${bindir}
install -p -m0700 ${S}/ceph/ceph-manager/scripts/init.d/ceph-manager ${D}/${sysconfdir}/rc.d/init.d install -p -m0700 ${S}/ceph/ceph-manager/scripts/init.d/ceph-manager ${D}/${sysconfdir}/init.d
install -p -m0700 ${S}/ceph/ceph-manager/files/ceph-manager.logrotate ${D}/${sysconfdir}/logrotate.d install -p -m0700 ${S}/ceph/ceph-manager/files/ceph-manager.logrotate ${D}/${sysconfdir}/logrotate.d
install -p -m0700 ${S}/ceph/ceph-manager/files/ceph-manager.service ${D}/${systemd_system_unitdir} install -p -m0700 ${S}/ceph/ceph-manager/files/ceph-manager.service ${D}/${systemd_system_unitdir}
} }