======================================= freebsd apcupsd --------------------------------------- pkg install apcupsd ======================================= /etc/rc.conf --------------------------------------- # apc ups apcupsd_enable="YES" apcupsd_flags="--term-on-powerfail" ======================================= /etc/rc.shutdown --------------------------------------- # Insert other shutdown procedures here test -f /var/run/powerfail && /usr/local/sbin/apcupsd --power-off ======================================= /usr/local/etc/apcupsd/apcupsd.conf --------------------------------------- UPSCABLE usb UPSTYPE usb #DEVICE /dev/usv ANNOY 0 BEEPSTATE T ======================================= some tests --------------------------------------- /usr/local/etc/rc.d/apcupsd start apcaccess status /usr/local/etc/rc.d/apcupsd stop apctest /usr/local/etc/rc.d/apcupsd start ======================================= end =======================================