6 PID
=`pidof -o %PPID /sbin/apcupsd`
9 stat_busy
"Starting APCUPSD Daemon"
10 rm -f /etc
/apcupsd
/powerfail
12 [ -z "$PID" ] && /sbin
/apcupsd
-f /etc
/apcupsd
/apcupsd.conf
16 PID
=`pidof -o %PPID /sbin/apcupsd`
17 echo $PID > /var
/run
/apcupsd.pid
23 stat_busy
"Stopping APCUPSD Daemon"
24 [ ! -z "$PID" ] && kill $PID &> /dev
/null
28 rm /var
/run
/apcupsd.pid
39 /sbin
/apcaccess status
42 echo "usage: $0 {start|stop|restart|status}"