All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ypbind-yocto.init: add status command
@ 2015-07-06  8:29 rongqing.li
  2015-08-11  5:24 ` Rongqing Li
  0 siblings, 1 reply; 7+ messages in thread
From: rongqing.li @ 2015-07-06  8:29 UTC (permalink / raw)
  To: openembedded-devel

From: Zhu Yanjun <yanjun.zhu@windriver.com>

Add the "status" command to check the status of ypbind.

Signed-off-by: Zhu Yanjun <yanjun.zhu@windriver.com>
---
 meta-networking/recipes-support/nis/files/ypbind-yocto.init | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/meta-networking/recipes-support/nis/files/ypbind-yocto.init b/meta-networking/recipes-support/nis/files/ypbind-yocto.init
index 5f50a53..da533a1 100644
--- a/meta-networking/recipes-support/nis/files/ypbind-yocto.init
+++ b/meta-networking/recipes-support/nis/files/ypbind-yocto.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
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-08-13  0:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-06  8:29 [PATCH] ypbind-yocto.init: add status command rongqing.li
2015-08-11  5:24 ` Rongqing Li
2015-08-11 12:30   ` Koen Kooi
2015-08-12  1:01     ` Rongqing Li
2015-08-12  1:20     ` Rongqing Li
2015-08-12 11:10       ` Paul Eggleton
2015-08-13  0:08         ` Rongqing Li

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.