]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - etc/redhat/nfs.init
2000-08-09 H.J. Lu <hjl@lucon.org>
[nfs-utils.git] / etc / redhat / nfs.init
index a00bd306721d27caf043e6f06a222fb68f2d366f..eb95a24b29873d0063dfc8f8de3b1255edac2cd4 100755 (executable)
@@ -36,6 +36,7 @@ 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
@@ -45,12 +46,10 @@ case "$1" in
        echo -n "Starting NFS daemon: "
        daemon rpc.nfsd $RPCNFSDCOUNT
        echo
-       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 +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)