Article View: linux.debian.bugs.dist
Article #6510Bug#670094: apcupsd powerfailure handling
From: Elliott Mitchell
Date: Sat, 28 Nov 2026 04:40
Date: Sat, 28 Nov 2026 04:40
32 lines
3236 bytes
3236 bytes
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 ( | ehem+sigmsg@m5p.com PGP 87145445 | ) / \_CS\ | _____ -O #include <stddisclaimer.h> O- _____ | / _/ 8A19\___\_|_/58D2 7E3D DDF4 7BA6 <-PGP-> 41D1 B375 37D0 8714\_|_/___/5445
Technical Details
Message-ID:
<O4io9-eBDl-1@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodReferences:
<iTccF-8f7-19@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Elliott Mitchell <ehem+debian@m5p.com> Newsgroups: linux.debian.bugs.dist Subject: Bug#670094: apcupsd powerfailure handling Date: Sat, 28 Nov 2026 05:40:01 +0100 Message-ID: <O4io9-eBDl-1@gated-at.bofh.it> References: <iTccF-8f7-19@gated-at.bofh.it> X-Original-To: 670094@bugs.debian.org X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Sat Nov 28 04:35:09 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.651 Reply-To: Elliott Mitchell <ehem+debian@m5p.com>, 670094@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: packages@qa.debian.org X-Debian-Pr-Message: followup 670094 X-Debian-Pr-Package: apcupsd X-Debian-Pr-Source: apcupsd MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Greylist: delayed 749 seconds by postgrey-1.37 at buxtehude; Sat, 28 Nov 2026 04:33:52 UTC X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2005528 List-ID: <debian-bugs-dist.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-dist/> Approved: robomod@news.nic.it Lines: 32 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Fri, 27 Nov 2026 20:20:53 -0800 X-Original-Message-ID: <awpWpbiwL3Ay46je@mattapan.m5p.com.> X-Original-References: <20120422205616.11295.95517.reportbug@leaf>