]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
2001-06-27 H.J. Lu <hjl@lucon.org>
authorhjl <hjl>
Wed, 27 Jun 2001 16:58:55 +0000 (16:58 +0000)
committerhjl <hjl>
Wed, 27 Jun 2001 16:58:55 +0000 (16:58 +0000)
* etc/redhat/nfs.init: Run rpc.rquotad only if it exists.

ChangeLog
etc/redhat/nfs.init

index b04dcfcdf7cd8e7c122f11dc2b352be51abe1d35..f56756d945ca6856e40d52983b1536bd195a5446 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2001-06-27  H.J. Lu <hjl@lucon.org>
+
+       * etc/redhat/nfs.init: Run rpc.rquotad only if it exists.
+
 2001-06-27  H.J. Lu <hjl@lucon.org>
 
        * utils/rquotad/rquota_server.c: Don't call statfs () for
 2001-06-27  H.J. Lu <hjl@lucon.org>
 
        * utils/rquotad/rquota_server.c: Don't call statfs () for
index 5a40f4f8f454b5f9717f0e80a41a705a142febee..4ef8d4884cd73bd9c974c41669081cc76708dfa6 100755 (executable)
@@ -27,6 +27,8 @@ fi
 [ -x /usr/sbin/exportfs ] || exit 0
 [ -s /etc/exports ] || exit 0
 
 [ -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.
 # 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
   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
        echo -n "Starting NFS daemon: "
        daemon rpc.nfsd $RPCNFSDCOUNT
        echo