APC UPS power failure handling agent
On FreeBSD 8.1, 2010-08-03
Install the port:
sysutils/apcupsd
Change in configfile: /usr/local/etc/apcupsd/apcupsd.conf:
UPSNAME UPS2
UPSCABLE usb
UPSTYPE usb
DEVICE /dev/ugen0
(Find the correct device by doing
dmesg | grep “American Power Conversion”
)
Add to rc.conf:
apcupsd_enable=”YES”
And start it:
/usr/local/etc/rc.d/apcupsd start