From: Zhangle Yang Date: Wed, 27 Nov 2013 14:00:21 +0000 (+0800) Subject: rpcbind: Fix rpcbind restart failure when rpcbind is not running X-Git-Tag: 2015-4~4466 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=ce17144b736b364175ab76e19e720292edfd2d81;p=openembedded-core.git 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 Signed-off-by: Richard Purdie --- 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