X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=etc%2Fredhat%2Fnfs.init;fp=etc%2Fredhat%2Fnfs.init;h=406fef14000b78a5732c326644a32b5e997ea358;hp=4ef8d4884cd73bd9c974c41669081cc76708dfa6;hb=4f152504e44e75d77be302d830b87cf463df9b33;hpb=51560d4104d03ce4584f7ca45f66587525e7419a diff --git a/etc/redhat/nfs.init b/etc/redhat/nfs.init index 4ef8d48..406fef1 100755 --- a/etc/redhat/nfs.init +++ b/etc/redhat/nfs.init @@ -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