* etc/redhat/nfslock.init: Check if lockd exits before killing
it.
+2000-04-26 H.J. Lu <hjl@lucon.org>
+
+ * etc/redhat/nfslock.init: Check if lockd exits before killing
+ it.
+
2000-04-25 H.J. Lu <hjl@lucon.org>
* README: Require util-linux-2.10f-mount-rpc.patch for mount.
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