3 # rpcbind Start/Stop RPC universal addresses to RPC program number mapper
7 # description: The rpcbind utility is a server that converts RPC program \
8 # numbers into universal addresses. It must be running on \
9 # the host to be able to make RPC calls on a server on that \
11 # processname: rpcbind
14 # Source function library
15 . /etc/rc.d/init.d/functions
18 . /etc/sysconfig/network
21 [ -f /etc/sysconfig/rpcbind ] && . /etc/sysconfig/rpcbind
23 # Check that networking is up.
24 if is_yes "${NETWORKING}"; then
25 if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
26 msg_network_down rpcbind
34 # Check if the service is already running?
35 if [ ! -f /var/lock/subsys/rpcbind ]; then
37 daemon rpcbind -w $RPCBIND_OPTIONS
39 [ $RETVAL -eq 0 ] && touch /var/lock/subsys/rpcbind
41 msg_already_running rpcbind
46 if [ -f /var/lock/subsys/rpcbind ]; then
49 rm -f /var/lock/subsys/rpcbind
51 msg_not_running rpcbind
56 # See how we were called.
77 msg_usage "$0 {start|stop|restart|force-reload|cleanup|status}"