Package: apcupsd Version: 3.10.16-7
apcupsd does not shut down the UPS in my configuration (detected as model "Back-UPS ES 500", using USB). There are two problems.
- First, the file /var/spool/apcupsd/powerfail is not being created, so apcupsd is never called with --killpower because of the check in /etc/init.d/ups-monitor. A line needs to be added in /etc/apcupsd/apccontrol to touch the powerfail file upon powerout. - Second, the powerfail file should not live in /var because that could be (and in fact generally is) a different filesystem, which will be unmounted by the time /etc/init.d/ups-monitor is called during the halt sequence. The file needs to be in /etc/apcupsd; I know that is probably against some policy, but killpower needs to work or the UPS is useless.
Regards,
-- Álvaro Martínez Echevarría
``Pero yo que he sentido una vez en mis manos temblar la alegría / ya no podré morir nunca. / Pero yo que he tocado una vez las agudas agujas del pino / ya no podré morir nunca''. [José Hierro, "El muerto"]