X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=etc%2Fredhat%2Fnfslock.init;fp=etc%2Fredhat%2Fnfslock.init;h=0000000000000000000000000000000000000000;hb=2f4ca78f367a20096073f99d4ad244ea6caed55a;hp=2f99c45a0f2498afbdea0388601d1bbaa47554c9;hpb=43bca307dd6452c460c33323406164cdcdb44cf6;p=nfs-utils.git diff --git a/etc/redhat/nfslock.init b/etc/redhat/nfslock.init deleted file mode 100755 index 2f99c45..0000000 --- a/etc/redhat/nfslock.init +++ /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