Installed apcupsd like so
Code: Select all
wget http://springdale.math.ias.edu/data/puias/unsupported/6/x86_64/apcupsd-3.14.10-1.puias6.x86_64.rpm
rpm -Uvh apcupsd-3.14.10-1.puias6.x86_64.rpm
Code: Select all
UPSNAME APCUPS00
UPSCABLE usb
UPSTYPE usb
DEVICE
POLLTIME 60
LOCKFILE /var/lock
SCRIPTDIR /etc/apcupsd
PWRFAILDIR /var/run/apcupsd
NOLOGINDIR /var/run/apcupsd
ONBATTERYDELAY 6
BATTERYLEVEL 50
MINUTES 3
TIMEOUT 600
ANNOY 60
ANNOYDELAY 60
NOLOGON disable
KILLDELAY 0
NETSERVER on
NISIP 0.0.0.0
NISPORT 3551
EVENTSFILE /var/log/apcupsd.events
EVENTSFILEMAX 10
UPSCLASS standalone
UPSMODE disable
STATTIME 0
STATFILE /var/log/apcupsd.status
LOGSTATS off
DATATIME 0
Code: Select all
chkconfig apcupsd on
service apcupsd start
apcaccess
is configured for "always on". Turned off the breaker for the UPS and after the expected 10 minutes the system shutdown. However, it only went down to "halted". That would have been OK, except the UPS stayed on. I waited an extra 13 minutes for it to go down, since it was possible that the UPS is programmed to wait a certain time before receiving its kill command and when it actually does it. Turned the breaker back on and of course the Server didn't restart. Powerbutton didn't do so from that state, but luckily it has a "reset", which did the trick.
So how do I get it to:
1. shut the UPS off?
2. poweroff the server, instead of halting it?
Thanks.