From: Andreas Ehmanns <universeii@gmx.de>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/2] Package nfs-utils: Start/stop daemons consistently
Date: Wed, 6 Jul 2016 18:53:59 +0200 [thread overview]
Message-ID: <577D37A7.8080105@gmx.de> (raw)
In-Reply-To: <20160703185343.5a0f7911@free-electrons.com>
Dear all,
thanks for revising the patch series. As requested I will use the
present instead of the past in the future :-)
Regards,
Andreas
Am 03.07.2016 um 18:53 schrieb Thomas Petazzoni:
> Hello,
>
> Title should be:
>
> package/nfs-utils: start/stop daemons consistently
>
> On Sun, 3 Jul 2016 18:46:58 +0200, Maxime Hadjinlian wrote:
>> From: universe II <universeii@gmx.de>
> Please fix this "From" to be consistent with the Signed-off-by. I
> forgot about it when applying the previous patches from Andreas.
>
>> Changed init script to start and stop all nfs daemons
> Please use the present "Change" and not the past "Changed". I don't
> understand why people use the past tense in commit logs.
>
>> in a consistent way. Using the same kill command,
>> start/stop the daemon, printout OK or FAIL and touch
>> or deleted necessary files.
>>
>> Signed-off-by: Andreas Ehmanns <universeII@gmx.de>
>> [Maxime:
>> - Make it really consistent to stop the daemons as pointed out by Yann E. Morin
> Line too long, no? :)
>
>> - Remove the -9]
>> Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
>> ---
>> package/nfs-utils/S60nfs | 12 ++++++------
>> 1 file changed, 6 insertions(+), 6 deletions(-)
>>
>> diff --git a/package/nfs-utils/S60nfs b/package/nfs-utils/S60nfs
>> index 7a49c79..2d4e082 100755
>> --- a/package/nfs-utils/S60nfs
>> +++ b/package/nfs-utils/S60nfs
>> @@ -45,22 +45,22 @@ start() {
>> stop() {
>> # Stop daemons.
>> printf "Shutting down NFS mountd: "
>> - killall -q rpc.mountd
>> + killall -q rpc.mountd 2>/dev/null
>> [ $? = 0 ] && echo "OK" || echo "FAIL"
>>
>> printf "Shutting down NFS daemon: "
>> - kill -9 `pidof nfsd` 2>/dev/null
>> + killall -q nfsd 2>/dev/null
>> [ $? = 0 ] && echo "OK" || echo "FAIL"
>>
>> printf "Shutting down NFS services: "
>> /usr/sbin/exportfs -au
>> - rm -f /var/lock/subsys/nfs
>> - killall -q rpc.statd
>> [ $? = 0 ] && echo "OK" || echo "FAIL"
>>
>> printf "Stopping NFS statd: "
>> - killall -q rpc.statd
>> + killall -q rpc.statd 2>/dev/null
>> [ $? = 0 ] && echo "OK" || echo "FAIL"
>> + rm -f /var/lock/subsys/nfs
>> + rm -f /var/run/rpc.statd.pid
>> rm -f /var/lock/subsys/nfslock
>> }
>>
>> @@ -81,7 +81,7 @@ case "$1" in
>> touch /var/lock/subsys/nfs
>> ;;
>> *)
>> - echo "Usage: nfs {start|stop|reload}"
>> + echo "Usage: $0 {start|stop|restart|reload}"
>> exit 1
>> esac
>>
> Thomas
next prev parent reply other threads:[~2016-07-06 16:53 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-03 16:46 [Buildroot] [PATCH 1/2] Package nfs-utils: Start/stop daemons consistently Maxime Hadjinlian
2016-07-03 16:46 ` [Buildroot] [PATCH 2/2] package/nfs-utils: Fix indent Maxime Hadjinlian
2016-07-03 16:54 ` Thomas Petazzoni
2016-07-03 16:53 ` [Buildroot] [PATCH 1/2] Package nfs-utils: Start/stop daemons consistently Thomas Petazzoni
2016-07-06 16:53 ` Andreas Ehmanns [this message]
2016-07-04 9:42 ` Thomas Petazzoni
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=577D37A7.8080105@gmx.de \
--to=universeii@gmx.de \
--cc=buildroot@busybox.net \
/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