|
NAMEapcupsd —
a daemon for controlling most APC UPSes
SYNOPSIS
DESCRIPTIONTheapcupsd daemon controls the operation of most
American Power Conversion Corp (APC) UPSes. During a power failure,
apcupsd informs users about the loss of utility power
and that a shutdown may occur. If utility power is not restored, a system
shutdown will follow when the battery is exhausted, a specified timeout
expires, a specified battery charge percentage is reached, or a specified
battery runtime (based on internal UPS calculations and determined by power
consumption rates) expires. If the utility power is restored before one of the
these shutdown conditions is met, apcupsd will inform
users of this and the shutdown will generally be cancelled. Refer to the
Implementation Notes section below for situations in which the shutdown may
not be cancelled.
The meaning of the command line options is as follows:
The The IMPLEMENTATION NOTESThe shutdown is made by calls to the script /etc/apcupsd/apccontrol by theapcupsd daemon. Consequently, no changes to
/etc/inittab are necessary on Linux as there is no
communication between the daemon and the init(1) process. Installation of the
daemon modifies the halt script so that at the end of the shutdown process,
the daemon will be re-executed to power off the UPS in hibernate mode.
On some operating systems (eg FreeBSD) there is no halt script so
apccontrol must be modified to cause the daemon to power off the UPS after a
delay. Alternatives are to use the --kill-on-powerfail command on the
CONFIGURATIONIt will almost certainly be necessary to customise the configuration information in the /etc/apcupsd/apcupsd.conf configuration file to suit your configuration and desired UPS behaviour.For information on the configuration directives and the format of the configuration file, refer to apcupsd.conf(5). EVENTSapcupsd generates events when certain conditions occur.
These events are sent to the system log and, optionally, to the temporary
events file (/var/log/apcupsd.events). They also
generate a call to the /etc/apcupsd/apccontrol script
which in turn will call any custom scripts placed in the
/etc/apcupsd directory which may override apccontrol's
default behaviour. For details of the events and customising apccontrol's
behaviour, refer to
apccontrol(8).
DATA FILE FORMATIf the DATATIME configuration directive is set to non-zero,apcupsd will log a data record at the interval defined
by the DATATIME directive. This data record is in a format similar to the APC
PowerChute software data file format.
STATUS REPORT FORMATThe status report output format is simple ASCII. Generally there is a single piece of information on each line of output. The content varies based on the model of UPS being used and, in some cases, the firmware version. This status report is also optionally written the the /etc/apcupsd/apcupsd.status file. Refer to apcaccess(8) for full details of the status report output.FILES/etc/apcupsd/apcupsd.conf default configuration file/var/run/apcupsd.pid default process ID file /var/log/apcupsd.status optional status file /var/log/apcupsd.events default events file SEE ALSOapcupsd.conf(5), apcaccess(8), apccontrol(8), apctest(8).The HTML apcupsd manual installed on your system or available online at http://www.apcupsd.org/ AUTHORSThis pageTrevor Roydhouse (current)Andre M. Hedrick Christopher J. Reimer SoftwareAdam Kropelin (current Project Manager and Code Maintainer) Kern Sibbald (former Project Manager and Code Maintainer) Riccardo Facchetti (former Project Manager and Code Maintainer) Andre M. Hedrick (Project Founder and former Code Maintainer) ContributorsAn enormous number of users who have devoted their time and energy to this project -- thanks.
Visit the GSP FreeBSD Man Page Interface. |