BSD Ports

sysutils/apcctrl 0.8.21_2 DragonFly

Fork of apcupsd 3.14.x with support for Brazilian APC nobreaks

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

Description

ApcCtrl is an unofficial branch from apcupsd 3.14.x. It can be used for controlling Brazilian APC UPS models (herited from Microsol).

Models supported or in tests:

  • BACK-UPS BR 1200VA (BZ1200BI-BR)
  • BACK-UPS BR 1500VA (BZ1500PBI-BR)
  • BACK-UPS BR 2200VA (BZ2200BI-BR and BZ2200I-BR)
  • SMART-UPS BR 1000VA (SUA1000BI-BR and SOLIS1000BI)
  • SMART-UPS BR 1500VA (SUA1500BI-BR and SOLIS1500BI)
  • SMART-UPS BR 2000VA (SUA2000BI-BR)
  • SMART-UPS BR 3000VA (SUA3000BI-BR)
  • STAY 800 (PS800)
  • STAY 700 (PS700)

In the other systems

SystemPortVersion
DragonFlysysutils/apcctrl0.8.21_2
FreeBSDsysutils/apcctrl0.8.21_2

Install

Binary package:

pkg install apcctrl

From DPorts:

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

Dependencies

No port depends on this one.

Configuration

No options to configure.

Service scripts
none

Message after installing

Sample files and scripts are installed in /usr/local/etc/apcctrl.

Some examples of devices:
 /dev/ttyU0    /dev/ttyUSB.nobreak
 /dev/ttyUSB0  /dev/ttyUSB1  /dev/ttyUSB2
 /dev/ttyACM0  /dev/ttyACM1  /dev/ttyACM2

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

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

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

Set apcctrl_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/apcctrl --hibernate
  or
  test -f /var/run/powerfail && /usr/local/sbin/apcctrl --power-off