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>
This commit is contained in:
parent
15bff7497d
commit
3ee3d3ac83
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue