Subject: Re: SIGPWR not handled by init?
To: Garrett D'Amore <>
From: Jason Thorpe <>
List: tech-userlevel
Date: 07/06/2006 15:22:55
On Jul 6, 2006, at 2:52 PM, Garrett D'Amore wrote:

> I know there is powerd that can watch for power button events, but we
> also want to deal with the case like critically low battery power,  
> etc.
> In some of these cases we'd rather have init shutdown gracefully than
> just do a hard shutdown.

powerd(8) can do that, too... create a new event type... and the  
script powerd runs can do whatever you want (like "showdown -p now"  
after logging a message).

-- thorpej