X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=etc%2Fredhat%2Fnfs.init;h=eb95a24b29873d0063dfc8f8de3b1255edac2cd4;hp=d3eeab5ebed7b5f004342adb509e1d7917198032;hb=da25e1aa006bafb4dd08e2ffedbd42d7c1f4036b;hpb=2fa836dd82ed15151a46dbf7911879c5660d12ba diff --git a/etc/redhat/nfs.init b/etc/redhat/nfs.init index d3eeab5..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" @@ -50,7 +50,6 @@ case "$1" in ;; stop) # Stop daemons. - action "Shutting down NFS services: " /usr/sbin/exportfs -au echo -n "Shutting down NFS mountd: " killproc rpc.mountd echo @@ -60,6 +59,9 @@ 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 ;; status)