]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - etc/redhat/nfslock.init
remove redhat files
[nfs-utils.git] / etc / redhat / nfslock.init
diff --git a/etc/redhat/nfslock.init b/etc/redhat/nfslock.init
deleted file mode 100755 (executable)
index 2f99c45..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-#!/bin/sh
-#
-# nfslock       This shell script takes care of starting and stopping
-#               the NFS file locking service.
-#
-# chkconfig: 345 60 86
-# description: NFS is a popular protocol for file sharing across \
-#             TCP/IP networks. This service provides NFS file \
-#             locking functionality.
-# probe: true
-
-# Source function library.
-. /etc/rc.d/init.d/functions
-
-# Source networking configuration.
-if [ ! -f /etc/sysconfig/network ]; then
-    exit 0
-fi
-
-. /etc/sysconfig/network
-
-# Check that networking is up.
-[ ${NETWORKING} = "no" ] && exit 0
-
-[ -x /sbin/rpc.lockd ] || exit 0
-[ -x /sbin/rpc.statd ] || exit 0
-
-if [ -n "${STATD_HOSTNAME}" ]; then
-    STATDARG="-n ${STATD_HOSTNAME}"
-else
-    STATDARG=""
-fi
-
-# See how we were called.
-case "$1" in
-  start)
-       # Start daemons.
-       echo "Starting NFS file locking services: "
-       echo -n "Starting NFS lockd: "
-       daemon rpc.lockd
-       echo
-       echo -n "Starting NFS statd: "
-       daemon rpc.statd ${STATDARG}
-       echo
-       touch /var/lock/subsys/nfslock
-       ;;
-  stop)
-       # Stop daemons.
-       echo "Shutting down NFS file locking services: "
-       pidlist=`pidofproc lockd`
-       if [ -n "$pidlist" ]; then
-               pid=
-               for apid in $pidlist ; do
-                       [ -f /proc/$apid/exe ] && 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
-       rm -f /var/lock/subsys/nfslock
-       ;;
-  status)
-       status lockd
-       status rpc.statd
-       ;;
-  restart)
-       $0 stop
-       $0 start
-       ;;
-  probe)
-       if [ ! -f /var/lock/subsys/nfslock ] ; then
-         echo start; exit 0
-       fi
-       /sbin/pidof rpc.statd >/dev/null 2>&1; STATD="$?"
-       /sbin/pidof lockd >/dev/null 2>&1; LOCKD="$?"
-       if [ $STATD = 1 -o $LOCKD = 1 ] ; then
-         echo restart; exit 0
-       fi
-       ;;
-  *)
-       echo "Usage: nfslock {start|stop|status|restart}"
-       exit 1
-esac
-
-exit 0