X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=etc%2Fredhat%2Fnfs.init;h=406fef14000b78a5732c326644a32b5e997ea358;hb=4f152504e44e75d77be302d830b87cf463df9b33;hp=5a40f4f8f454b5f9717f0e80a41a705a142febee;hpb=0f0769643d8e2876f99dc1dbd6ff374333d0a159;p=nfs-utils.git diff --git a/etc/redhat/nfs.init b/etc/redhat/nfs.init index 5a40f4f..406fef1 100755 --- a/etc/redhat/nfs.init +++ b/etc/redhat/nfs.init @@ -27,6 +27,8 @@ fi [ -x /usr/sbin/exportfs ] || exit 0 [ -s /etc/exports ] || exit 0 +RQUOTAD=`type -path rpc.rquotad` # Remote quota server + # Number of servers to be started up by default RPCNFSDCOUNT=8 # Default to NFS version 3. @@ -37,9 +39,11 @@ case "$1" in start) # Start daemons. action "Starting NFS services: " /usr/sbin/exportfs -r - echo -n "Starting NFS quotas: " - daemon rpc.rquotad - echo + if [ -n "$RQUOTAD" ]; then + echo -n "Starting NFS quotas: " + daemon rpc.rquotad + echo + fi echo -n "Starting NFS daemon: " daemon rpc.nfsd $RPCNFSDCOUNT echo @@ -63,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 @@ -74,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