Apcupsd Linux UPS daemon version 3.8.3
apcupsd a program for controlling APC UPSes
Apcupsd can be used for controlling APC UPSes. During a power failure, apcupsd will inform the users about the power failure and that a shutdown may occur. If power is not restored, a system shutdown will follow when the battery is exhausted, a timeout (seconds) expires, or runtime expires based on internal APC calculations determined by power consumption rates. If the power is restored before one of the above shutdown conditions is met, apcupsd will inform users about this fact.
Apcupsd runs on Linux systems, many Unix systems (Solaris, FreeBSD, OpenBSD, Alpha, ...) as well as on Windows systems (Win95/98/Me/NT/2000).
Apcupsd performs the shutdown by calling /etc/apcupsd/apccontrol, which is a shell script. Consequently, no changes to /etc/inittab are necessary. There is no communication between apcupsd and init(1) process. During installation, the system halt script was modified so that at the end of the shutdown process during a power failure, apcupsd will be re-executed in order to power off the UPS. This step is not mandatory, but is good practice as it avoids the possibility of your system being prematurely restarted if the power returns for a short period. It also permits your computer to be automatically rebooted when the power is restored providing you have configured your computer BIOS appropriately.
The apcupsd daemon now supports two networking modes that function independently, but if desired at the same time.
The second networking mode is for multiple networked machines that are powered by the same UPS. In this mode, one machine is configured as a master with the UPS attached to the serial port. The other machines (maximum 20) powered by the same UPS are configured as slaves. The master has a network connection with the slaves and sends them information about the UPS status. Please see the UPS Sharing section of this document for more details.
RedHat and S.u.S.E. versions of Linux have direct install support. All other flavors of Linux may need some fussing with to get the install correct.
SUPPORTED MODELSPlease see the Configuration section of this document for more details.
apcnisd(8)For credits, please see the Thanks Chapter of this manual.