diff options
author | Zhu Yanjun <yanjun.zhu@windriver.com> | 2015-08-13 08:38:32 +0800 |
---|---|---|
committer | Joe MacDonald <joe_macdonald@mentor.com> | 2015-09-11 10:27:37 -0400 |
commit | d3eaede791c121147f1b99db01facd2080019993 (patch) | |
tree | 82d5aed2efe9bd78107bd358c201c57c80e776a5 /meta-networking/recipes-support/nis/files | |
parent | d36e2d1066f50036080f978583a58fe79ecfac54 (diff) | |
download | meta-openembedded-contrib-d3eaede791c121147f1b99db01facd2080019993.tar.gz |
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>
Diffstat (limited to 'meta-networking/recipes-support/nis/files')
-rw-r--r-- | meta-networking/recipes-support/nis/files/ypbind.init (renamed from meta-networking/recipes-support/nis/files/ypbind-yocto.init) | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/meta-networking/recipes-support/nis/files/ypbind-yocto.init b/meta-networking/recipes-support/nis/files/ypbind.init index 2c50d12e63..244dc78bca 100644 --- a/meta-networking/recipes-support/nis/files/ypbind-yocto.init +++ b/meta-networking/recipes-support/nis/files/ypbind.init @@ -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 |