[oe-commits] Zhangle Yang : rpcbind: Fix rpcbind restart failure when rpcbind is not running
git at git.openembedded.org
git at git.openembedded.org
Fri Nov 29 09:52:23 UTC 2013
Module: openembedded-core.git
Branch: master
Commit: ce17144b736b364175ab76e19e720292edfd2d81
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=ce17144b736b364175ab76e19e720292edfd2d81
Author: Zhangle Yang <zhangle.yang at windriver.com>
Date: Wed Nov 27 22:00:21 2013 +0800
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 at windriver.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/recipes-extended/rpcbind/rpcbind/init.d | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/recipes-extended/rpcbind/rpcbind/init.d b/meta/recipes-extended/rpcbind/rpcbind/init.d
index 5c756bb..d418673 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
More information about the Openembedded-commits
mailing list