Package:APC UPS Daemon

From Funtoo
Revision as of 03:46, 5 February 2014 by Duncan.Britton (Talk)

Jump to: navigation, search

Installation

First, emerge sys-power/acpupsd:

# 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
# rc-update add apcupsd.powerfail shutdown

Check UPS status

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

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