Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] rpcbind: fix init status and exit code
@ 2013-12-11  9:07 wenzong.fan
  2013-12-11  9:07 ` [PATCH 1/1] " wenzong.fan
  0 siblings, 1 reply; 2+ messages in thread
From: wenzong.fan @ 2013-12-11  9:07 UTC (permalink / raw)
  To: openembedded-core

From: Wenzong Fan <wenzong.fan@windriver.com>

Currently run the '/etc/init.d/rpcbind status' on target, it only exits
with 0/1 and not any prompt messages.

The change get it prints status messages and exit with proper code.This
also allows debian service script to get rpcbind status correctly.

The following changes since commit d754ddcec78f5e264100ceda854e8412679d6866:

  bitbake: process: Add timeout to select call (2013-12-10 17:55:29 +0000)

are available in the git repository at:

  git://git.pokylinux.org/poky-contrib wenzong/rpcbind
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=wenzong/rpcbind

Wenzong Fan (1):
  rpcbind: fix init status and exit code

 meta/recipes-extended/rpcbind/rpcbind/init.d |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

-- 
1.7.9.5



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

* [PATCH 1/1] rpcbind: fix init status and exit code
  2013-12-11  9:07 [PATCH 0/1] rpcbind: fix init status and exit code wenzong.fan
@ 2013-12-11  9:07 ` wenzong.fan
  0 siblings, 0 replies; 2+ messages in thread
From: wenzong.fan @ 2013-12-11  9:07 UTC (permalink / raw)
  To: openembedded-core

From: Wenzong Fan <wenzong.fan@windriver.com>

Print status messages and exit with proper code. This also allows debian
service script to get rpcbind status correctly.

Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
---
 meta/recipes-extended/rpcbind/rpcbind/init.d |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/meta/recipes-extended/rpcbind/rpcbind/init.d b/meta/recipes-extended/rpcbind/rpcbind/init.d
index d418673..67499aa 100644
--- a/meta/recipes-extended/rpcbind/rpcbind/init.d
+++ b/meta/recipes-extended/rpcbind/rpcbind/init.d
@@ -16,6 +16,9 @@
 #                    RPC include NFS and NIS.
 ### END INIT INFO
 
+# Source function library.
+. /etc/init.d/functions
+
 test -f /sbin/rpcbind || exit 0
 
 OPTIONS=""
@@ -73,8 +76,7 @@ case "$1" in
         start $OPTIONS
         ;;
     status)
-        pidof /sbin/rpcbind >/dev/null
-        exit $?
+        status /sbin/rpcbind
         ;;
     *)
         echo "Usage: /etc/init.d/rpcbind {start|stop|force-reload|restart|status}"
@@ -82,4 +84,4 @@ case "$1" in
         ;;
 esac
 
-exit 0
+exit $?
-- 
1.7.9.5



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

end of thread, other threads:[~2013-12-11  9:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-11  9:07 [PATCH 0/1] rpcbind: fix init status and exit code wenzong.fan
2013-12-11  9:07 ` [PATCH 1/1] " wenzong.fan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox