X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=etc%2Fredhat%2Fnfs.init;h=d3eeab5ebed7b5f004342adb509e1d7917198032;hp=687b19904be2d57383a6c54be49daa2e39d27973;hb=2fa836dd82ed15151a46dbf7911879c5660d12ba;hpb=024b5b69d39bfbeebd97736c78852ab79412c6a4;ds=sidebyside diff --git a/etc/redhat/nfs.init b/etc/redhat/nfs.init index 687b199..d3eeab5 100755 --- a/etc/redhat/nfs.init +++ b/etc/redhat/nfs.init @@ -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 -