X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=etc%2Fredhat%2Fnfslock.init;h=48cea0f3fc5633ea6f083d2129984c4eb868579b;hp=3225b3a560985176a4c7e3a962a24faa00dbf051;hb=e7a90e99053a6c0575efcb19f3ddda3abd5f59cd;hpb=c66b083e9a007b02a23c24d22d6afaca555fcbee diff --git a/etc/redhat/nfslock.init b/etc/redhat/nfslock.init index 3225b3a..48cea0f 100755 --- a/etc/redhat/nfslock.init +++ b/etc/redhat/nfslock.init @@ -3,7 +3,7 @@ # 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. @@ -25,6 +25,12 @@ fi [ -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) @@ -34,7 +40,7 @@ case "$1" in daemon rpc.lockd echo echo -n "Starting NFS statd: " - daemon rpc.statd + daemon rpc.statd ${STATDARG} echo touch /var/lock/subsys/nfslock ;; @@ -69,7 +75,7 @@ case "$1" in daemon rpc.lockd echo -n "rpc.statd " killproc rpc.statd - daemon rpc.statd + daemon rpc.statd ${STATDARG} touch /var/lock/subsys/nfslock echo "done." ;;