6 PID
=`pidof -o %PPID /usr/sbin/upsd`
9 stat_busy
"Starting UPSd Daemon"
10 /usr
/bin
/upsdrvctl start
&> /dev
/null
11 [ -z "$PID" ] && /usr
/sbin
/upsd
&>/dev
/null
12 /usr
/sbin
/upsmon
&>/dev
/null
22 stat_busy
"Stopping UPSd Daemon"
23 /usr
/sbin
/upsmon
-c stop
&> /dev
/null
24 /usr
/sbin
/upsd
-c stop
&> /dev
/null
25 /usr
/bin
/upsdrvctl stop
&> /dev
/null
41 cho
"usage: $0 {start|stop|restart}"