From: hjl Date: Wed, 27 Jun 2001 16:58:55 +0000 (+0000) Subject: 2001-06-27 H.J. Lu X-Git-Tag: nfs-utils-0-3-2-pre7~1 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=3abfccd3e6d9d30c88132478ab2836ab1ffa0c5b;p=nfs-utils.git 2001-06-27 H.J. Lu * etc/redhat/nfs.init: Run rpc.rquotad only if it exists. --- diff --git a/ChangeLog b/ChangeLog index b04dcfc..f56756d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2001-06-27 H.J. Lu + + * etc/redhat/nfs.init: Run rpc.rquotad only if it exists. + 2001-06-27 H.J. Lu * utils/rquotad/rquota_server.c: Don't call statfs () for diff --git a/etc/redhat/nfs.init b/etc/redhat/nfs.init index 5a40f4f..4ef8d48 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