summaryrefslogtreecommitdiff
path: root/sysutils/apcupsd/files/pkg-message.in
blob: 6af80aada141a94265d71d30d6ed98af7fd199c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
[
{ type: install
  message: <<EOM
Read the manual: http://www.apcupsd.org/manual/manual.html
                 http://www.apcupsd.org/manual/manual.pdf

Sample files and scripts are installed in %%ETCDIR%%.
You need to modify %%ETCDIR%%/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.

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
EOM
}
]