7 RSTATD_PID
=`pidof -o %PPID /usr/sbin/rpc.rstatd`
10 if [ ! -f /var
/run
/daemons
/rpcbind
]; then
11 /etc
/rc.d
/rpcbind start
17 stat_busy
"Starting $DAEMON_NAME"
18 [ -z "$RSTATD_PID" ] && /usr
/sbin
/rpc.rstatd
23 echo `pidof -o %PPID /usr/sbin/rpc.rstatd` > /var
/run
/rpc.rstatd.pid
25 add_daemon
$DAEMON_NAME
30 stat_busy
"Stopping $DAEMON_NAME"
31 [ ! -z "$RSTATD_PID" ] && kill $RSTATD_PID &> /dev
/null
36 rm /var
/run
/rpc.rstatd.pid
&> /dev
/null
38 rm_daemon
$DAEMON_NAME
49 echo "usage: $0 {start|stop|restart}"