Difference between revisions of "Package:APC UPS Daemon"

(Created page with "==Installation== <console> ###i## emerge --ask apcupsd ###i## equery f apcupsd </console> ==Configuration and Runlevel Registration== Edit your /etc/apcupsd/apcupsd.conf prop...")
 
Line 1: Line 1:
 
==Installation==
 
==Installation==
 +
First, emerge {{Package|sys-power/acpupsd}}:
 
<console>
 
<console>
###i## emerge --ask apcupsd
+
###i## emerge apcupsd
 
###i## equery f apcupsd
 
###i## equery f apcupsd
 
</console>
 
</console>
  
 
==Configuration and Runlevel Registration==
 
==Configuration and Runlevel Registration==
Edit your /etc/apcupsd/apcupsd.conf properly.
+
Edit your <tt>/etc/apcupsd/apcupsd.conf</tt> properly.
  
 +
To start <tt>apcupsd</tt>, run the following:
 
<console>
 
<console>
 
###i## /etc/init.d/apcupsd start
 
###i## /etc/init.d/apcupsd start
 +
</console>
 +
To add <tt>apcupsd</tt> to the appropriate runlevels, execute the following commands:
 +
<console>
 
###i## rc-update add apcupsd default
 
###i## rc-update add apcupsd default
 
###i## rc-update add apcupsd.powerfail shutdown
 
###i## rc-update add apcupsd.powerfail shutdown
Line 15: Line 20:
  
 
==Check UPS status==
 
==Check UPS status==
 
+
Finally, to check on the status of <tt>acpupsd</tt>, run the following:
 
<console>
 
<console>
 
###i## apcaccess status
 
###i## apcaccess status
 
###i## tail -f /var/log/apcupsd.events
 
###i## tail -f /var/log/apcupsd.events
 
</console>
 
</console>
 +
 +
[[Category:System]]

Revision as of 03:46, 5 February 2014

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
# 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