summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended
diff options
context:
space:
mode:
authorZhangle Yang <zhangle.yang@windriver.com>2013-11-27 22:00:21 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-11-29 09:52:58 +0000
commit3ee3d3ac83cd36ad608b8ea7d6ea5a68a09a78c4 (patch)
tree78116166c99517c90b9775d1d9039891d81a860b /meta/recipes-extended
parent15bff7497df8561cb3df3cc38efc5942c429d624 (diff)
downloadpoky-3ee3d3ac83cd36ad608b8ea7d6ea5a68a09a78c4.tar.gz
rpcbind: Fix rpcbind restart failure when rpcbind is not running
"rpcbind restart" executes stop and then start function. However, if rpcbind is not started, "exit 0" shall be run in stop function, so start function will not be run at all. This patch changes "exit 0" to "return 0". (From OE-Core rev: ce17144b736b364175ab76e19e720292edfd2d81) Signed-off-by: Zhangle Yang <zhangle.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended')
-rw-r--r--meta/recipes-extended/rpcbind/rpcbind/init.d2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-extended/rpcbind/rpcbind/init.d b/meta/recipes-extended/rpcbind/rpcbind/init.d
index 5c756bb523..d418673aa0 100644
--- a/meta/recipes-extended/rpcbind/rpcbind/init.d
+++ b/meta/recipes-extended/rpcbind/rpcbind/init.d
@@ -47,7 +47,7 @@ stop ()
47 echo "Stopping rpcbind daemon..." 47 echo "Stopping rpcbind daemon..."
48 if ! pidof /sbin/rpcbind >/dev/null; then 48 if ! pidof /sbin/rpcbind >/dev/null; then
49 echo "not running." 49 echo "not running."
50 exit 0 50 return 0
51 fi 51 fi
52 start-stop-daemon --stop --quiet --exec /sbin/rpcbind 52 start-stop-daemon --stop --quiet --exec /sbin/rpcbind
53 if [ $? -eq 0 ]; then 53 if [ $? -eq 0 ]; then