From 3abfccd3e6d9d30c88132478ab2836ab1ffa0c5b Mon Sep 17 00:00:00 2001 From: hjl Date: Wed, 27 Jun 2001 16:58:55 +0000 Subject: [PATCH] 2001-06-27 H.J. Lu * etc/redhat/nfs.init: Run rpc.rquotad only if it exists. --- ChangeLog | 4 ++++ etc/redhat/nfs.init | 10 +++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) 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 -- 2.39.5