[ -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.
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 "Shutting down NFS daemon: "
killproc nfsd
echo
- echo -n "Shutting down NFS quotas: "
- killproc rpc.rquotad
- echo
+ if [ -n "$RQUOTAD" ]; then
+ echo -n "Shutting down NFS quotas: "
+ killproc rpc.rquotad
+ echo
+ fi
# Do it the last so that clients can still access the server
# when the server is running.
action "Shutting down NFS services: " /usr/sbin/exportfs -au
status)
status rpc.mountd
status nfsd
- status rpc.rquotad
+ if [ -n "$RQUOTAD" ]; then
+ status rpc.rquotad
+ fi
;;
restart)
$0 stop