# nfslock This shell script takes care of starting and stopping
# the NFS file locking service.
#
-# chkconfig: 345 60 20
+# chkconfig: 345 60 86
# description: NFS is a popular protocol for file sharing across \
# TCP/IP networks. This service provides NFS file \
# locking functionality.
if [ -n "$pidlist" ]; then
pid=
for apid in $pidlist ; do
- [ -d /proc/$apid ] && pid="$pid $apid"
+ [ -f /proc/$apid/exe ] && pid="$pid $apid"
done
if [ -n "$pid" ]; then
echo -n "Shutting down NFS lockd: "