This has certainly been around a long time. I've thought for a while the real issue is the handling of reboot versus halt has been mixed up with apcupsd (likely nut too). I would equate "reboot" to "system needs to restart due to minor system issue and will be back up more or less immediately" (perhaps security update which needs restart). I would equate "halt" to "system needs to go down for an extended period of time due to issue" (playing with hardware).
If you think in those terms a power failure is a reboot situation NOT a halt situation. The desired behavior is for the system is to restart as soon as possible (depends on the power failure cause). This also resolves undesired behavior caused by interfering with administrator actions. If the admin was planning to make hardware changes they might halt the machine early due to an overlapping downtime window. They would then NOT want the computer to automatically restart if power was restored (the UPS killpower would be bad). If the admin needed a restart due to a system update they would likely prefer to wait for power restoration before booting (no point in booting only to halt 5 minites later). So doing "reboot" on imminent UPS battery depletion and unconditionally doing UPS killpower just before hardware reset seems a better course of action. -- (\___(\___(\______ --=> 8-) EHM <=-- ______/)___/)___/) \BS ( | [email protected] PGP 87145445 | ) / \_CS\ | _____ -O #include <stddisclaimer.h> O- _____ | / _/ 8A19\___\_|_/58D2 7E3D DDF4 7BA6 <-PGP-> 41D1 B375 37D0 8714\_|_/___/5445

