Note:

The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.

Difference between revisions of "Package:APC UPS Daemon"

From Funtoo
Jump to navigation Jump to search
m
 
Line 8: Line 8:


==Installation==
==Installation==
First, emerge {{Package|sys-power/acpupsd}}:
=== USE Flags ===
{{SectionNeedsUpdates}}
{| class="wikitable" style="margin: 1em auto;" width=80%
! width="20%" | Use flag
! width="10%" | Default
! width="10%" | Recommended
! width="60%" | Description
|-
|}
=== Emerging ===
Emerge {{Package|sys-power/acpupsd}}:
<console>
<console>
###i## emerge apcupsd
###i## emerge apcupsd
###i## equery f apcupsd
</console>
</console>



Revision as of 20:33, September 15, 2014

APC UPS Daemon

   Tip

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.


"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

USE Flags

   Important

This section is in need of updates.

Use flag Default Recommended Description

Emerging

Emerge No results:

root # emerge apcupsd

Configuration and Runlevel Registration

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

To start apcupsd, run the following:

root # /etc/init.d/apcupsd start

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

root # rc-update add apcupsd default
 * service apcupsd added to runlevel default
root # 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:

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