apccontrol Command Line Options
apccontrol accepts the following command line options:
- annoyme
- Does a printf "Power problems please logoff."
| wall then exits.
- changeme
- Does a printf "Emergency! UPS batteries have
failed\nChange them NOW" | wall then exits.
- commfailure
- Does a printf "Warning serial port
communications with UPS lost." | wall then
exits.
- commok
- Does a printf "Serial communciations with UPS
restored." | wall then exits.
- doreboot
- Does a reboot of the system by calling shutdown -r
now
- doshutdown
- Does a shutdown of the system by calling shutdown -h
now
- emergency
- Does an emergency shutdown of the system by calling
shutdown -h now
- failing
- Does a printf "UPS battery power exhaused. Doing
shutdown.\n" | wall then exits.
- loadlimit
- Does a printf "UPS battery discharge limit
reached. Doing shutdown.\n" | wall then exits.
After completeting this event, apcupsd will immediately
initiate a doshutdown event.
- mainsback
- Attempts to cancel the shutdown with a
shutdown -c
- onbattery
- Does a printf "Power failure. Running on UPS
batteries." | wall then exits.
- powerout
- Does a printf "Warning power loss detected."
| wall then exits.
- remotedown
- Does a shutdown -h now
- restartme
- Terminates the currently running apcupsd and then restarts
it.
- runlimit
- Does a printf "UPS battery runtime percent
reached. Doing shutdown.\n" | wall then exits.
After completeting this event, apcupsd will immediately
initiate a doshutdown event.
- timeout
- Does a printf "UPS battery runtime limit
exceded. Doing shutdown.\n" | wall then exits.
After completeting this event, apcupsd will immediately
initiate a doshutdown event.