--- etc/rc.d/init.d/nfs.orig 2005-03-08 22:21:40 +0300 +++ etc/rc.d/init.d/nfs.orig 2005-03-23 02:20:45 +0300 @@ -61,6 +61,13 @@ start_mountd() start_daemon --no-announce -- $MOUNTD $MOUNTD_OPTIONS } +start_rquotad() +{ + [ -x "$RQUOTAD" ] || return 0 + msg_starting $"NFS quotas" + start_daemon --no-announce -- $RQUOTAD +} + start_svcgssd() { [ -d /sys/class ] || return 0 @@ -96,6 +103,13 @@ stop_mountd() stop_daemon --no-announce -- $MOUNTD } +stop_rquotad() +{ + [ -x "$RQUOTAD" ] || return 0 + msg_stopping $"NFS quotas" + stop_daemon --no-announce -- $RQUOTAD +} + stop_svcgssd() { [ -d /sys/class ] || return 0 @@ -120,8 +134,7 @@ start() action $"Exporting NFS file systems:" $EXPORTFS -r # rquotad - msg_starting $"NFS quotas" - start_daemon --no-announce -- $RQUOTAD + start_rquotad RETVAL=$? [ $RETVAL -eq 0 ] || return @@ -156,8 +169,7 @@ stop() stop_svcgssd # rquotad - msg_stopping $"NFS quotas" - stop_daemon --no-announce -- $RQUOTAD + stop_rquotad # Do it the last so that clients can still access the server # when the server is running. @@ -184,7 +196,7 @@ reload() statuses() { status $MOUNTD - status $RQUOTAD + [ -x "$RQUOTAD" ] && status $RQUOTAD status $SVCGSSD # FIXME better way ? start-stop-daemon -Ktq -n nfsd > /dev/null && echo nfsd is running || echo nfsd is stopped