3 # Safe apccontrol for testing.
5 # This apccontrol can be used for testing without fear
6 # that it will bring your system down
7 # examples/safe.apccontrol. Generated from safe.apccontrol.in by configure.
12 SHUTDOWN
=/sbin
/shutdown
13 SCRIPTDIR
=/usr
/local
/apcupsd
19 apccontrol: ${APCUPSD} --killpower would have been.
25 apccontrol: Communications with UPS lost.
31 apccontrol: Communciations with UPS restored.
37 apccontrol: Warning power loss detected.
43 apccontrol: Power failure. Running on UPS batteries.
49 apccontrol: Off battery. Mains returned.
55 apccontrol: UPS battery power exhaused. Doing shutdown.
61 apccontrol: UPS battery runtime limit exceeded. Doing shutdown.
67 apccontrol: UPS battery discharge limit reached. Doing shutdown.
73 apccontrol: UPS battery runtime percent reached. Doing shutdown.
79 apccontrol
: ${SHUTDOWN} for reboot would have been called.
85 apccontrol: ${SHUTDOWN} for halt would have been called.
91 apccontrol: Power has returned...
97 apccontrol: Power problems please logoff.
103 apccontrol: ${SHUTDOWN} for emergency halt would have been called.
109 apccontrol: Emergency! UPS batteries have failed.
116 apccontrol: ${SHUTDOWN} for remote halt would have been called.
122 apccontrol: start self test would have been called.
128 apccontrol: end self test would have been called.
132 *) echo "Usage: ${0##*/} command"
133 echo " warning: this script is intended to be launched by"
134 echo " apcupsd and should never be launched by users."