X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=etc%2Fredhat%2Fnfs.init;h=a66761914eef4d1be2a13000706a7647b6ada506;hb=877ee5ab033fd5e66858f250296283353d3020d2;hp=d3eeab5ebed7b5f004342adb509e1d7917198032;hpb=2fa836dd82ed15151a46dbf7911879c5660d12ba;p=nfs-utils.git diff --git a/etc/redhat/nfs.init b/etc/redhat/nfs.init index d3eeab5..a667619 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" @@ -36,7 +36,6 @@ RPCMOUNTDOPTS="--no-nfs-version 3" case "$1" in start) # Start daemons. - action "Starting NFS services: " /usr/sbin/exportfs -r echo -n "Starting NFS quotas: " daemon rpc.rquotad echo @@ -46,11 +45,13 @@ case "$1" in echo -n "Starting NFS daemon: " daemon rpc.nfsd $RPCNFSDCOUNT echo + # Do it the last so that all clients mounting points are + # exported. FIXME: Why? + action "Starting NFS services: " /usr/sbin/exportfs -r touch /var/lock/subsys/nfs ;; stop) # Stop daemons. - action "Shutting down NFS services: " /usr/sbin/exportfs -au echo -n "Shutting down NFS mountd: " killproc rpc.mountd echo @@ -60,6 +61,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)