APC UPS Daemon

Revision as of 15:10, June 27, 2014 by Duncan.britton (Talk | contribs)

sys-power/apcupsd


Source Repository:Gentoo Portage Tree

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


News

Drobbins

Subarch Profiles are coming...

Subarch profiles are on their way! Learn more here.
29 March 2015 by Drobbins
Drobbins

RSS/Atom Support

You can now follow this news feed at http://www.funtoo.org/news/atom.xml .
10 February 2015 by Drobbins
Drobbins

Creating a Friendly Funtoo Culture

This news item details some recent steps that have been taken to help ensure that Funtoo is a friendly and welcoming place for our users.
2 February 2015 by Drobbins
View More News...

APC UPS Daemon

Tip

This is a wiki page. To edit it, 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.


"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]

Installation

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