Skip to contentSkip to conversation

ypbind-yocto.init: add status command

PATCH In review [email protected] 3 participants 7 messages Jul 6, 2015 – Aug 13, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ypbind-yocto.init: add status command

From: Zhu Yanjun <[email protected]>

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

---
 meta-networking/recipes-support/nis/files/ypbind-yocto.init | 7 +++++++
 1 file changed, 7 insertions(+)
meta-networking/recipes-support/nis/files/ypbind-yocto.init +7 -0
index 5f50a53..da533a1 100644
@@ -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
Signature · 1 line
1.9.1
#1 lore raw

ping

-Roy

Quoted 35 lines · On 2015年07月06日 16:29, [email protected] wrote:

From: Zhu Yanjun <[email protected]>

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

---
  meta-networking/recipes-support/nis/files/ypbind-yocto.init | 7 +++++++
  1 file changed, 7 insertions(+)
meta-networking/recipes-support/nis/files/ypbind-yocto.init +7 -0
index 5f50a53..da533a1 100644
@@ -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
Signature · 2 lines
Best Reagrds,
Roy | RongQing Li
#2 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Op 11-08-15 om 07:24 schreef Rongqing Li:

Quoted 1 line

ping

While you're there, can you please fix the name of this file? Either change it to 'yoctoproject' or rename it to something sensible, but the current situation is just wrong.

Quoted 23 lines

-Roy

Quoted 19 lines · On 2015年07月06日 16:29, [email protected] wrote:

From: Zhu Yanjun <[email protected]>

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

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

Quoted 8 lines
Quoted 7 lines
(quoted diff) +0 -0
@@ -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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: GPGTools - http://gpgtools.org

iD8DBQFVyerMMkyGM64RGpERAsGEAJ4wrA9wavFzQZfyIiZwLntHXnLVPACfW0Dc GihWGohDCHjH8dKz+cq5fLo=
=mkrk
-----END PGP SIGNATURE-----

#3 lore raw
Quoted 9 lines · Koen Kooi

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Op 11-08-15 om 07:24 schreef Rongqing Li:

Quoted 1 line

ping

While you're there, can you please fix the name of this file? Either change it to 'yoctoproject' or rename it to something sensible, but the current situation is just wrong.

Ok, thanks

-Roy

Quoted 42 lines
Quoted 24 lines

-Roy

Quoted 19 lines · On 2015年07月06日 16:29, [email protected] wrote:

From: Zhu Yanjun <[email protected]>

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

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

Quoted 8 lines
Quoted 7 lines
(quoted diff) +0 -0
@@ -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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: GPGTools - http://gpgtools.org

iD8DBQFVyerMMkyGM64RGpERAsGEAJ4wrA9wavFzQZfyIiZwLntHXnLVPACfW0Dc GihWGohDCHjH8dKz+cq5fLo=
=mkrk
-----END PGP SIGNATURE-----

Signature · 2 lines
Best Reagrds,
Roy | RongQing Li
#4 lore raw
In reply to Koen Kooi
Quoted 10 lines · Koen Kooi

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Op 11-08-15 om 07:24 schreef Rongqing Li:

Quoted 1 line

ping

While you're there, can you please fix the name of this file? Either change it to 'yoctoproject' or rename it to something sensible, but the current situation is just wrong.

I will change the title of this patch, and not rename ypbind-yocto.init, since ypbind-yocto.init will be rename to ypbind when it is installed into system

-Roy

Quoted 41 lines
Quoted 23 lines

-Roy

Quoted 19 lines · On 2015年07月06日 16:29, [email protected] wrote:

From: Zhu Yanjun <[email protected]>

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

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

Quoted 8 lines
Quoted 7 lines
(quoted diff) +0 -0
@@ -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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: GPGTools - http://gpgtools.org

iD8DBQFVyerMMkyGM64RGpERAsGEAJ4wrA9wavFzQZfyIiZwLntHXnLVPACfW0Dc GihWGohDCHjH8dKz+cq5fLo=
=mkrk
-----END PGP SIGNATURE-----

Signature · 2 lines
Best Reagrds,
Roy | RongQing Li
#5 lore raw

Hi Roy,

Quoted 8 lines · On Wednesday 12 August 2015 09:20:32 Rongqing Li wrote:
Quoted 3 lines · Koen Kooi

While you're there, can you please fix the name of this file? Either change it to 'yoctoproject' or rename it to something sensible, but the current situation is just wrong.

I will change the title of this patch, and not rename ypbind-yocto.init, since ypbind-yocto.init will be rename to ypbind when it is installed into system

Yes, that's clear - it's just not the right name in the metadata either. Would you mind simply renaming it to ypbind.init to be at least similar to other recipes?

Thanks,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#6 lore raw
Quoted 8 lines · Paul Eggleton

Hi Roy,

Quoted 5 lines · On Wednesday 12 August 2015 09:20:32 Rongqing Li wrote:
Quoted 3 lines · Koen Kooi

While you're there, can you please fix the name of this file? Either change it to 'yoctoproject' or rename it to something sensible, but the current situation is just wrong.

Quoted 8 lines
Quoted 3 lines

I will change the title of this patch, and not rename ypbind-yocto.init, since ypbind-yocto.init will be rename to ypbind when it is installed into system

Yes, that's clear - it's just not the right name in the metadata either. Would you mind simply renaming it to ypbind.init to be at least similar to other recipes?

Ok

-Roy

Quoted 3 lines

Thanks,
Paul

Signature · 2 lines
Best Reagrds,
Roy | RongQing Li