From: hjl Date: Wed, 26 Apr 2000 21:43:44 +0000 (+0000) Subject: 2000-04-26 H.J. Lu X-Git-Tag: nfs-utils-0-1-7-1~1 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=852eb5d16f99b9e76ed3b2d2ea3c0017a8590eb0;p=nfs-utils.git 2000-04-26 H.J. Lu * etc/redhat/nfslock.init: Check if lockd exits before killing it. --- diff --git a/ChangeLog b/ChangeLog index a55e1b0..47673d7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-04-26 H.J. Lu + + * etc/redhat/nfslock.init: Check if lockd exits before killing + it. + 2000-04-25 H.J. Lu * README: Require util-linux-2.10f-mount-rpc.patch for mount. diff --git a/etc/redhat/nfslock.init b/etc/redhat/nfslock.init index 9e9a2c9..469840c 100755 --- a/etc/redhat/nfslock.init +++ b/etc/redhat/nfslock.init @@ -41,9 +41,18 @@ case "$1" in stop) # Stop daemons. echo "Shutting down NFS file locking services: " - echo -n "Shutting down NFS lockd: " - killproc lockd - echo + pidlist=`pidofproc lockd` + if [ -n "$pidlist" ]; then + pid= + for apid in $pidlist ; do + [ -d /proc/$apid ] && pid="$pid $apid" + done + if [ -n "$pid" ]; then + echo -n "Shutting down NFS lockd: " + killproc lockd + echo + fi + fi echo -n "Shutting down NFS statd: " killproc rpc.statd echo