APC UPS Daemon

Revision as of 05:24, March 25, 2014 by Daniel Robbins (Talk)


Source Repository:Repository:Gentoo Portage Tree

Summary: APC UPS daemon with integrated network-based remote shutdown



OpenSSH 7 Disables DSA Keys By Default

Please be aware of this important change to avoid getting locked out of your Funtoo server.
2015-10-07 by Drobbins

Project Unfork Status

Here's an update on Project Unfork, plus other neat things.
2015-10-03 by Drobbins

IP Space Migration Continues

All Funtoo user containers in the 8.28 IP space will be moving into our new IP space (172.97) over the next few days. If you have DNS set up -- be sure to watch your container and update to the new IP! container.host.funtoo.org DNS will be updated after the move.
2015-08-27 by Drobbins

APC UPS Daemon


We welcome improvements to this page. To edit this page, Create a Funtoo account. Then log in and then click here to edit this page. See our editing guidelines to becoming a wiki-editing pro.

What is apcupsd?

"Apcupsd can be used for power mangement and controlling most of APC's UPS models on Unix and Windows machines. Apcupsd works with most of APC's Smart-UPS models as well as most simple signalling models such a Back-UPS, and BackUPS-Office. 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. Apcupsd is licensed under the GPL version 2." [1]


First, emerge sys-power/acpupsd (package not on wiki - please add):

# emerge apcupsd
# equery f apcupsd

Configuration and Runlevel Registration

Edit your /etc/apcupsd/apcupsd.conf properly.

To start apcupsd, run the following:

# /etc/init.d/apcupsd start

To add apcupsd to the appropriate runlevels, execute the following commands:

# rc-update add apcupsd default
 * service apcupsd added to runlevel default
# rc-update add apcupsd.powerfail shutdown
 * service apcupsd added to runlevel shutdown

Check UPS status

Finally, to check on the status of acpupsd, run the following:

# apcaccess status
# tail -f /var/log/apcupsd.events