[OE-core] [PATCH 1/2] Avoid starting rpcbind daemon twice during boot
Saul Wold
sgw at linux.intel.com
Fri Nov 15 15:15:05 UTC 2013
On 11/14/2013 10:34 PM, Yue Tao wrote:
> Check whether rpcbind daemon already run before starting it.
>
Please review the commit guidelines for both of your patches and correct
the short summary (subject) to be in the form of:
initscripts: Avoid ...
Thanks
SaU!
> Signed-off-by: Yue Tao <Yue.Tao at windriver.com>
> ---
> .../initscripts/initscripts-1.0/mountnfs.sh | 9 ++++++---
> 1 files 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 4fffe4e..a03070d 100755
> --- a/meta/recipes-core/initscripts/initscripts-1.0/mountnfs.sh
> +++ b/meta/recipes-core/initscripts/initscripts-1.0/mountnfs.sh
> @@ -69,9 +69,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
>
>
More information about the Openembedded-core
mailing list