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 is_no "${NETWORKING}"; then
23 msg_network_down "NFS rquotad"
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.
37 # Check if the service is already running?
38 if [ ! -f /var/lock/subsys/rquotad ]; then
40 msg_starting "NFS quotas"
42 touch /var/lock/subsys/rquotad
44 msg_already_running "NFS quota daemon"
49 if [ -f /var/lock/subsys/rquotad ]; then
51 msg_stopping "NFS quotas"
53 rm -f /var/lock/subsys/rquotad
55 msg_not_running "NFS quota daemon"
67 if [ ! -f /var/lock/subsys/quotad ] ; then
70 /sbin/pidof rpc.rquotad >/dev/null 2>&1;
76 msg_usage "$0 {start|stop|status|restart|probe}"