BSD Ports

sysutils/apcupsd 3.14.14_6 DragonFly

Set of programs for controlling APC UPS

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
GPLv2
Categories
sysutils
Package size
144.9 KiB, 557.0 KiB installed

Description

"apcupsd" can be used for controlling all APC UPS models

It can monitor and log the current power and battery status, perform automatic shutdown, and can run in network mode in order to power down other hosts on a LAN

In the other systems

SystemPortVersion
DragonFlysysutils/apcupsd3.14.14_6
FreeBSDsysutils/apcupsd3.14.14_6
OpenBSDsysutils/apcupsd3.14.14p7
NetBSDsysutils/apcupsd3.14.14nb10

Install

Binary package:

pkg install apcupsd

From DPorts:

cd /usr/dports/sysutils/apcupsd && make install clean

Dependencies

No port depends on this one.

Configuration

No options to configure.

Service scripts
none

Message after installing

Read the manual: http://www.apcupsd.org/manual/manual.html
                 http://www.apcupsd.org/manual/manual.pdf

Sample files and scripts are installed in /usr/local/etc/apcupsd.
You need to modify /usr/local/etc/apcupsd/apcupsd.conf as follows:

  For serial cable: DEVICE /dev/cuadX (or /dev/cuaaX for [45.]x)
  For USB cable: DEVICE (yes, leave it blank after DEVICE)
  NOTE that for USB cable you need uhid support.

Add apcupsd_enable=YES to your /etc/rc.conf[.local] to have apcupsd
starting up at boot time.

For default, apcupsd starts with `--kill-on-powerfail` parameter.
Please, read its man page, and if this is not the intended behavior you want,
change it accordingly.

If connected via USB and apcaccess reports incomplete data consider enabling
the USB_REPORTING options via 'make config'.  This contains an experimental
patch that may fix some USB attach APC UPS. PR #249041

In some systems where the shutdown can take a while (like in bhyve environment),
you may want to change this behavior as follows:

Set apcupsd_flags="--term-on-powerfail" on your /etc/rc.conf[.local].

Add this to /etc/rc.shutdown, after the "Insert other shutdown procedures here"
line:
  test -f /var/run/powerfail && /usr/local/sbin/apcupsd --hibernate
  or
  test -f /var/run/powerfail && /usr/local/sbin/apcupsd --power-off