X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=rquotad.init;h=1bfadb17b763d71eeae938fa7be116e92a8f093e;hb=16f3f572a6b3779a288d5c3c863b4e6fb699b4db;hp=6956e71938b6037ad3dc88d46e566332b944d180;hpb=891a86c96b7eb368b79a7a7f86d30321b2336b69;p=packages%2Fnfs-utils.git diff --git a/rquotad.init b/rquotad.init index 6956e71..1bfadb1 100644 --- a/rquotad.init +++ b/rquotad.init @@ -1,12 +1,13 @@ #!/bin/sh # # rquotad This shell script takes care of starting and stopping -# the NFS quota service. +# the RPC rquotad service. # # chkconfig: 345 12 82 -# description: NFS is a popular protocol for file sharing across \ -# TCP/IP networks. This service provides NFS file \ -# locking functionality. +# description: rquotad is an RPC server which returns quotas for \ +# a user of a local filesystem which is mounted by \ +# a remote machine over the NFS. It also allows \ +# setting of quotas on NFS mounted filesystem # probe: true # Source function library. @@ -21,16 +22,15 @@ # Check that networking is up. if is_yes "${NETWORKING}"; then if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then - msg_network_down "NFS rquotad" + msg_network_down "RPC rquotad" exit 1 fi else exit 0 fi -if [ -x /sbin/pidof ] && [ "$1" != "stop" ] && [ -z "`/sbin/pidof portmap`" ]; then - echo "Error: portmap isn't running" - exit 0 +if [ "$1" != "stop" ]; then + check_portmapper || { nls "Error: portmap isn't running" && exit 0; } fi start() { @@ -46,23 +46,23 @@ start() { OPTIONS="$OPTIONS --no-setquota" fi # Start daemons. - msg_starting "NFS quotas" + msg_starting "RPC rquotad" daemon rpc.rquotad $OPTIONS RETVAL=$? [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rquotad else - msg_already_running "NFS quota daemon" + msg_already_running "RPC rquotad" fi } stop() { if [ -f /var/lock/subsys/rquotad ]; then # Stop daemons. - msg_stopping "NFS quotas" + msg_stopping "RPC rquotad" killproc rpc.rquotad rm -f /var/lock/subsys/rquotad else - msg_not_running "NFS quota daemon" + msg_not_running "RPC rquotad" fi }