Ticket #162 (closed enhancement: fixed)

Opened 17 months ago

Last modified 16 months ago

add support for UPS triggered shutdown

Reported by: stefantalpalaru@yahoo.com Owned by: roy
Priority: major Milestone:
Component: init.d scripts Version: 0.4
Keywords: Cc:

Description

sys-power/nut and sys-power/acpupsd trigger a shutdown when the UPS reaches a minimum battery level. They mark this by creating /etc/killpower and /etc/apcupsd/powerfail respectively.

The reason why we need a script in the 'shutdown' runlevel that checks for these files is that we want the power to be cut by the UPS so the computer can boot when the power is restored (a BIOS setting needs to be activated for this behavior). Otherwise, if a normal shutdown is performed the computer will require manual restart.

I'm attaching the script (tested with sys-power/nut only).

Attachments

powerfail Download (686 bytes) - added by stefantalpalaru@yahoo.com 17 months ago.

Change History

Changed 17 months ago by stefantalpalaru@yahoo.com

comment:1 Changed 16 months ago by roy

  • Status changed from new to closed
  • Resolution set to fixed

acupsd already seems to have it's own init script in portage.
I've filed  Gentoo Bug #266804 with a nut specific script that is designed to be added to the shutdown runlevel, which fixes this.

Thanks!

Note: See TracTickets for help on using tickets.