X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=etc%2Fredhat%2Fnfs.init;h=eb95a24b29873d0063dfc8f8de3b1255edac2cd4;hb=764e46f5c5fe1a6e376f4cd350424f33afc9e838;hp=687b19904be2d57383a6c54be49daa2e39d27973;hpb=024b5b69d39bfbeebd97736c78852ab79412c6a4;p=nfs-utils.git diff --git a/etc/redhat/nfs.init b/etc/redhat/nfs.init index 687b199..eb95a24 100755 --- a/etc/redhat/nfs.init +++ b/etc/redhat/nfs.init @@ -27,7 +27,7 @@ fi [ -x /usr/sbin/exportfs ] || exit 0 [ -s /etc/exports ] || exit 0 -# Number of servers to be started uo by default +# Number of servers to be started up by default RPCNFSDCOUNT=8 # No NFS V3. RPCMOUNTDOPTS="--no-nfs-version 3" @@ -59,6 +59,8 @@ case "$1" in echo -n "Shutting down NFS quotas: " killproc rpc.rquotad echo + # Do it the last so that clients can still access the server + # when the server is running. action "Shutting down NFS services: " /usr/sbin/exportfs -au rm -f /var/lock/subsys/nfs ;; @@ -68,13 +70,8 @@ case "$1" in status rpc.rquotad ;; restart) - echo -n "Restarting NFS services: " - echo -n "rpc.mountd " - killproc rpc.mountd - daemon rpc.mountd $RPCMOUNTDOPTS - /usr/sbin/exportfs -r - touch /var/lock/subsys/nfs - echo "done." + $0 stop + $0 start ;; reload) /usr/sbin/exportfs -r @@ -99,4 +96,3 @@ case "$1" in esac exit 0 -