]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
2001-07-25 H.J. Lu <hjl@lucon.org>
authorhjl <hjl>
Wed, 25 Jul 2001 16:23:19 +0000 (16:23 +0000)
committerhjl <hjl>
Wed, 25 Jul 2001 16:23:19 +0000 (16:23 +0000)
* etc/redhat/nfs.init: Check if rpc.rquotad exists before doing
anything about it.

ChangeLog
etc/redhat/nfs.init

index 5363bd04d517a68baad6debcf314cd3e3cdd80ac..ac7ea2dc3f4c0dff9db9986dec0ee55bc6b84ce8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-07-25  H.J. Lu <hjl@lucon.org>
+
+       * etc/redhat/nfs.init: Check if rpc.rquotad exists before doing
+       anything about it.
+
 2001-06-27  H.J. Lu <hjl@lucon.org>
 
        * etc/redhat/nfs.init: Run rpc.rquotad only if it exists.
index 4ef8d4884cd73bd9c974c41669081cc76708dfa6..406fef14000b78a5732c326644a32b5e997ea358 100755 (executable)
@@ -67,9 +67,11 @@ case "$1" in
        echo -n "Shutting down NFS daemon: "
        killproc nfsd
        echo
-       echo -n "Shutting down NFS quotas: "
-       killproc rpc.rquotad
-       echo
+       if [ -n "$RQUOTAD" ]; then
+               echo -n "Shutting down NFS quotas: "
+               killproc rpc.rquotad
+               echo
+       fi
        # 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
@@ -78,7 +80,9 @@ case "$1" in
   status)
        status rpc.mountd
        status nfsd
-       status rpc.rquotad
+       if [ -n "$RQUOTAD" ]; then
+               status rpc.rquotad
+       fi
        ;;
   restart)
        $0 stop