]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - etc/redhat/nfs.init
2000-05-18 H.J. Lu <hjl@lucon.org>
[nfs-utils.git] / etc / redhat / nfs.init
index 687b19904be2d57383a6c54be49daa2e39d27973..d3eeab5ebed7b5f004342adb509e1d7917198032 100755 (executable)
@@ -50,6 +50,7 @@ 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
@@ -59,7 +60,6 @@ case "$1" in
        echo -n "Shutting down NFS quotas: "
        killproc rpc.rquotad
        echo
-       action "Shutting down NFS services: " /usr/sbin/exportfs -au
        rm -f /var/lock/subsys/nfs
        ;;
   status)
@@ -68,13 +68,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 +94,3 @@ case "$1" in
 esac
 
 exit 0
-