mirror of
https://git.yoctoproject.org/poky
synced 2026-04-20 18:32:12 +02:00
initscripts: Avoid starting rpcbind daemon twice
Check the status before start it to avoid duplicates. (From OE-Core rev: ca3ef7d1ef9b1f0dc4d3170b1ad20d5f725872a1) (From OE-Core rev: 2f3faa2d80a2d848fe18fc375628b69a1ca4ee52) Signed-off-by: Yue Tao <Yue.Tao@windriver.com> Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Jeff Polk <jeff.polk@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -67,9 +67,12 @@ if test "$rpcbind" = yes
|
||||
then
|
||||
if test -x /usr/sbin/rpcbind
|
||||
then
|
||||
echo -n "Starting rpcbind... "
|
||||
start-stop-daemon --start --quiet --exec /usr/sbin/rpcbind
|
||||
sleep 2
|
||||
service rpcbind status > /dev/null
|
||||
if [ $? != 0 ]; then
|
||||
echo -n "Starting rpcbind..."
|
||||
start-stop-daemon --start --quiet --exec /usr/sbin/rpcbind
|
||||
sleep 2
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user