Package: apcupsd
Version: 3.14.4-1lenny1

The subject line tells the story. The scripts with apcupsd all assume
they can write to /etc/apcupsd/powerfail, which only works if / is
mounted read-write.


Two solutions jump to mind:
First solution, `init` has powerfail/powerok states; if that state is
passed to invoked scripts, then that can be used to decide whether an
attached UPS should powerdown or not.

Second solution, it might be better to tell init to change to state 6
(reboot), rather than 0 (halt) in case of power failure. This seems a
better description of a power failure situation, the system will try to
reboot ASAP, not the system is going down while someone plays with
hardware. In this case, whenever the system is rebooted, the driver for
the UPS would tell the UPS to power down if AC power is absent (or
batteries are too far depleted due to power restoration between reboot
request and calling the driver).


I'm wondering if #492094 is a similar situation?


-- 
(\___(\___(\______          --=> 8-) EHM <=--          ______/)___/)___/)
 \BS (    |         e...@gremlin.m5p.com PGP F6B23DE0         |    )   /
  \_CS\   |  _____  -O #include <stddisclaimer.h> O-   _____  |   /  _/
2477\___\_|_/DC21 03A0 5D61 985B <-PGP-> F2BE 6526 ABD2 F6B2\_|_/___/3DE0





-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to