7 SFSSD_PID
=`pidof -o %PPID sfssd`
10 stat_busy
"Starting $DAEMON_NAME"
11 if [ ! -f /var
/run
/daemons
/portmap
]; then
12 echo "ERROR: portmap is not running"
16 if [ ! -f /var
/run
/daemons
/nfslock
]; then
17 echo "ERROR: nfslock is not running"
21 if [ ! -f /var
/run
/daemons
/nfsd
]; then
22 echo "ERROR: nfsd is not running"
26 [ -z "$SFSSD_PID" ] && /usr
/sbin
/sfssd
31 echo `pidof -o %PPID sfssd` > /var
/run
/sfssd.pid
33 add_daemon
$DAEMON_NAME
38 stat_busy
"Stopping $DAEMON_NAME"
39 [ ! -z "$SFSSD_PID" ] && kill $SFSSD_PID &> /dev
/null
44 kill -9 $SFSSD_PID &> /dev
/null
45 rm /var
/run
/sfssd.pid
&> /dev
/null
47 rm_daemon
$DAEMON_NAME
58 echo "usage: $0 {start|stop|restart}"