rpcbind: fix init status and exit code
cover rpcbind: fix init status and exit code
From: Wenzong Fan <[email protected]>
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(-)
Signature · 1 line
1.7.9.5
PATCH 1/1 rpcbind: fix init status and exit code
From: Wenzong Fan <[email protected]>
Print status messages and exit with proper code. This also allows debian service script to get rpcbind status correctly.
--- meta/recipes-extended/rpcbind/rpcbind/init.d | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-)
meta/recipes-extended/rpcbind/rpcbind/init.d +5 -3
@@ -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 $?
Signature · 1 line
1.7.9.5