mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-29 12:29:32 +00:00
ypbind-mt: add status command for initscript
Add the "status" command in initscript to check the status of ypbind. remove ypbind-yocto.init as ypbind.init, which is the initscript, make its name similar to other recipes Signed-off-by: Zhu Yanjun <yanjun.zhu@windriver.com> Signed-off-by: Roy Li <rongqing.li@windriver.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
This commit is contained in:
committed by
Joe MacDonald
parent
d36e2d1066
commit
d3eaede791
+7
@@ -21,6 +21,9 @@
|
||||
# the NIS binding information.
|
||||
### END INIT INFO
|
||||
|
||||
# Need to use status function
|
||||
. /etc/init.d/functions
|
||||
|
||||
YPBIND_BIN=/usr/sbin/ypbind
|
||||
pidfile=/var/run/ypbind.pid
|
||||
|
||||
@@ -92,6 +95,10 @@ case "$1" in
|
||||
echo -n "Reload service ypbind"
|
||||
start-stop-daemon --stop --quiet --signal 1 --pidfile $pidfile
|
||||
;;
|
||||
status)
|
||||
echo -n "Checking for ypbind: "
|
||||
status $YPBIND_BIN
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|status|try-restart|restart|force-reload|reload|probe}"
|
||||
exit 1
|
||||
@@ -26,7 +26,7 @@ DEPENDS = " \
|
||||
PROVIDES += "ypbind"
|
||||
|
||||
SRC_URI = "http://www.linux-nis.org/download/ypbind-mt/${BP}.tar.bz2 \
|
||||
file://ypbind-yocto.init \
|
||||
file://ypbind.init \
|
||||
file://ypbind.service \
|
||||
"
|
||||
SRC_URI[md5sum] = "094088c0e282fa7f3b3dd6cc51d0a4e1"
|
||||
@@ -44,7 +44,7 @@ do_install_append () {
|
||||
install -d ${D}${sysconfdir}/init.d
|
||||
install -d ${D}${sysconfdir}/rcS.d
|
||||
|
||||
install -m 0755 ${WORKDIR}/ypbind-yocto.init ${D}${sysconfdir}/init.d/ypbind
|
||||
install -m 0755 ${WORKDIR}/ypbind.init ${D}${sysconfdir}/init.d/ypbind
|
||||
|
||||
install -d ${D}${systemd_unitdir}/system
|
||||
install -m 0644 ${WORKDIR}/ypbind.service ${D}${systemd_unitdir}/system
|
||||
|
||||
@@ -21,7 +21,7 @@ PROVIDES += "ypbind"
|
||||
PNBLACKLIST[ypbind-mt] ?= "BROKEN: Depends on broken yp-tools"
|
||||
|
||||
SRC_URI = "http://www.linux-nis.org/download/ypbind-mt/${BP}.tar.bz2 \
|
||||
file://ypbind-yocto.init \
|
||||
file://ypbind.init \
|
||||
file://ypbind.service \
|
||||
"
|
||||
SRC_URI[md5sum] = "54e2040d8266ae7d302d081ca310c8a8"
|
||||
@@ -41,7 +41,7 @@ do_install_append () {
|
||||
install -d ${D}${sysconfdir}/init.d
|
||||
install -d ${D}${sysconfdir}/rcS.d
|
||||
|
||||
install -m 0755 ${WORKDIR}/ypbind-yocto.init ${D}${sysconfdir}/init.d/ypbind
|
||||
install -m 0755 ${WORKDIR}/ypbind.init ${D}${sysconfdir}/init.d/ypbind
|
||||
|
||||
install -d ${D}${systemd_unitdir}/system
|
||||
install -m 0644 ${WORKDIR}/ypbind.service ${D}${systemd_unitdir}/system
|
||||
|
||||
Reference in New Issue
Block a user