diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rwxr-xr-x | etc/redhat/nfs.init | 10 |
2 files changed, 11 insertions, 3 deletions
@@ -1,5 +1,9 @@ 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 the block size. Use BLOCK_SIZE instead. 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 |