Hi Hongxu,
Does this change fix a bug or an inappropriate system behavior?

Thanks,
Cristian Iorga
YP
Intel Corporation

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Hongxu 
Jia
Sent: Friday, March 28, 2014 11:43 AM
To: [email protected]
Cc: Wold, Saul
Subject: [OE-core] [PATCH 3/6] initscripts: Avoid restarting rpcbind daemon

From: Yue Tao <[email protected]>

Check whether rpcbind daemon already run before starting it.

Signed-off-by: Yue Tao <[email protected]>
Signed-off-by: Robert Yang <[email protected]>
Signed-off-by: Jeff Polk <[email protected]>
Signed-off-by: Hongxu Jia <[email protected]>
---
 meta/recipes-core/initscripts/initscripts-1.0/mountnfs.sh | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/meta/recipes-core/initscripts/initscripts-1.0/mountnfs.sh 
b/meta/recipes-core/initscripts/initscripts-1.0/mountnfs.sh
index fe6c196..be9f597 100755
--- a/meta/recipes-core/initscripts/initscripts-1.0/mountnfs.sh
+++ b/meta/recipes-core/initscripts/initscripts-1.0/mountnfs.sh
@@ -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
 
--
1.8.1.2

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to