RQUOTADOPTIONS="$RQUOTADOPTIONS --no-setquota"
fi
-RETVAL=0
-# See how we were called.
-case "$1" in
- start)
+start() {
# Check if the service is already running?
if [ ! -f /var/lock/subsys/rquotad ]; then
# Start daemons.
else
msg_already_running "NFS quota daemon"
fi
- ;;
- stop)
+}
+
+stop() {
if [ -f /var/lock/subsys/rquotad ]; then
# Stop daemons.
msg_stopping "NFS quotas"
else
msg_not_running "NFS quota daemon"
fi
+}
+
+RETVAL=0
+# See how we were called.
+case "$1" in
+ start)
+ start
+ ;;
+ stop)
+ stop
;;
status)
status rpc.rquotad
exit $?
;;
restart|force-reload)
- $0 stop
- $0 start
- exit $?
+ stop
+ start
;;
probe)
if [ ! -f /var/lock/subsys/quotad ]; then
echo start; exit 0
fi
- /sbin/pidof rpc.rquotad >/dev/null 2>&1;
+ /sbin/pidof rpc.rquotad >/dev/null 2>&1
if [ $? = 1 ]; then
echo restart; exit 0
fi