diff options
author | hjl <hjl> | 2001-06-27 16:58:55 +0000 |
---|---|---|
committer | hjl <hjl> | 2001-06-27 16:58:55 +0000 |
commit | 3abfccd3e6d9d30c88132478ab2836ab1ffa0c5b (patch) | |
tree | 807eed46eee66805ddf7a80e39c832895772614c | |
parent | b6eb550a30ed655bae0cd9a4124af462205b58fb (diff) | |
download | nfs-utils-3abfccd3e6d9d30c88132478ab2836ab1ffa0c5b.tar.gz nfs-utils-3abfccd3e6d9d30c88132478ab2836ab1ffa0c5b.tar.xz nfs-utils-3abfccd3e6d9d30c88132478ab2836ab1ffa0c5b.zip |
2001-06-27 H.J. Lu <hjl@lucon.org>
* etc/redhat/nfs.init: Run rpc.rquotad only if it exists.
-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 |