3 # rquotad This shell script takes care of starting and stopping
4 # the NFS quota service.
7 # description: NFS is a popular protocol for file sharing across \
8 # TCP/IP networks. This service provides NFS file \
9 # locking functionality.
12 # Source function library.
13 . /etc/rc.d/init.d/functions
16 . /etc/sysconfig/network
19 [ -f /etc/sysconfig/rquotad ] && . /etc/sysconfig/rquotad
21 # Check that networking is up.
22 if [ "${NETWORKING}" = "no" ]; then
23 echo "WARNING: Networking is down. NFS rquotad and statd can't be run"
27 if [ -x /sbin/pidof ] && [ "$1" != "stop" ]; then
28 [ -z "`/sbin/pidof portmap`" ] && echo "Error: portmap isn't running" && exit 0
32 [ -x /usr/sbin/rpc.rquotad ] || exit 0
34 # See how we were called.
38 show "Starting NFS quotas"
40 touch /var/lock/subsys/rquotad
44 show "Shutting down NFS quotas"
46 rm -f /var/lock/subsys/rquotad
56 if [ ! -f /var/lock/subsys/quotad ] ; then
59 /sbin/pidof rpc.rquotad >/dev/null 2>&1;
65 echo "Usage: rquotad {start|stop|status|restart|probe}"