From: Hongxu Jia <hongxu.jia@windriver.com>
To: "Iorga, Cristian" <cristian.iorga@intel.com>,
"openembedded-core@lists.openembedded.org"
<openembedded-core@lists.openembedded.org>
Cc: "Wold, Saul" <saul.wold@intel.com>
Subject: Re: [PATCH 3/6] initscripts: Avoid restarting rpcbind daemon
Date: Sat, 29 Mar 2014 14:56:23 +0800 [thread overview]
Message-ID: <53366E97.2070807@windriver.com> (raw)
In-Reply-To: <969F26A8BAB325438E7EB80D3C3134FB1CE744CF@IRSMSX105.ger.corp.intel.com>
On 03/29/2014 12:52 AM, Iorga, Cristian wrote:
> Hi Hongxu,
> Does this change fix a bug or an inappropriate system behavior?
Yes, I got this fix from WindRiver Linux, here is the defect log:
1. From Boot logs:
Configuring network interfaces... ifup: interface lo already configured
done.
Starting rpcbind daemon...done.
Starting rpcbind...Mounting remote filesystems...
2. From target:
# ls -l /etc/rcS.d/S43rpcbind
lrwxrwxrwx 3 root root 17 Aug 28 07:57 /etc/rcS.d/S43rpcbind ->
../init.d/rpcbind
3. But mountnfs also start rpcbind:
# ls -l /etc/rcS.d/S45mountnfs.sh
lrwxrwxrwx 3 root root 21 Aug 28 07:57 /etc/rcS.d/S45mountnfs.sh ->
../init.d/mountnfs.sh
from /etc/init.d/mountfs.sh
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
fi
fi
//Hongxu
> Thanks,
> Cristian Iorga
> YP
> Intel Corporation
>
> -----Original Message-----
> From: openembedded-core-bounces@lists.openembedded.org [mailto:openembedded-core-bounces@lists.openembedded.org] On Behalf Of Hongxu Jia
> Sent: Friday, March 28, 2014 11:43 AM
> To: openembedded-core@lists.openembedded.org
> Cc: Wold, Saul
> Subject: [OE-core] [PATCH 3/6] initscripts: Avoid restarting rpcbind daemon
>
> From: Yue Tao <Yue.Tao@windriver.com>
>
> Check whether rpcbind daemon already run before starting it.
>
> 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: Hongxu Jia <hongxu.jia@windriver.com>
> ---
> 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
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
next prev parent reply other threads:[~2014-03-29 6:56 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-28 9:42 [PATCH 0/6][Part I] wr-misc patches Hongxu Jia
2014-03-28 9:42 ` [PATCH 1/6] wayland-native: disable unused macro checks to fix build issue on Centos5.x Hongxu Jia
2014-03-28 9:42 ` [PATCH 2/6] kmod: fix O_CLOEXEC not supported on old kernel Hongxu Jia
2014-03-28 9:42 ` [PATCH 3/6] initscripts: Avoid restarting rpcbind daemon Hongxu Jia
2014-03-28 16:52 ` Iorga, Cristian
2014-03-29 6:56 ` Hongxu Jia [this message]
2014-03-28 9:42 ` [PATCH 4/6] qemu: Add addition environment space to boot loader qemu-system-mips Hongxu Jia
2014-03-28 9:42 ` [PATCH 5/6] Qemu:Arm:versatilepb: Add memory size checking Hongxu Jia
2014-03-28 9:42 ` [PATCH 6/6] openssl: Fix pod2man des.pod error on Ubuntu 12.04 Hongxu Jia
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53366E97.2070807@windriver.com \
--to=hongxu.jia@windriver.com \
--cc=cristian.iorga@intel.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=saul.wold@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox