summaryrefslogtreecommitdiff
path: root/meta/recipes-extended/rpcbind
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-27 14:28:28 +0000
commitce17144b736b364175ab76e19e720292edfd2d81 (patch)
treee6281e5fd7ec9cd750568853749580011116e085 /meta/recipes-extended/rpcbind
parent79b0979ecd33ce15563354c90d8bcc857ddf95ad (diff)
downloadopenembedded-core-ce17144b736b364175ab76e19e720292edfd2d81.tar.gz
openembedded-core-ce17144b736b364175ab76e19e720292edfd2d81.tar.bz2
openembedded-core-ce17144b736b364175ab76e19e720292edfd2d81.zip
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". Signed-off-by: Zhangle Yang <zhangle.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/rpcbind')
-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 ()
echo "Stopping rpcbind daemon..."
if ! pidof /sbin/rpcbind >/dev/null; then
echo "not running."
- exit 0
+ return 0
fi
start-stop-daemon --stop --quiet --exec /sbin/rpcbind
if [ $? -eq 0 ]; then