Subject: Re: SIGPWR not handled by init?
To: Garrett D'Amore <email@example.com>
From: Jonathan A. Kollasch <firstname.lastname@example.org>
Date: 07/07/2006 02:43:22
Content-Type: text/plain; charset=us-ascii
On Thu, Jul 06, 2006 at 02:52:53PM -0700, Garrett D'Amore wrote:
> I noticed that init on NetBSD doesn't seem to handle SIGPWR reasonably.=
> This is unfortunate, because init could be used to initiate a "safe"
> shutdown, switching run-states, etc.
> 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.
> Thoughts? (include me in replies, as I'm not on tech-kern@)
Well, a few weeks back I had thoughts of a uhidups(4) that talked
to powerd. But, that wouldn't support contact-closure UPSes, and
the HID UPSes have lots of quirks. This came about because I (at
the time) thought the manually-do-the-final-kernel-shutdown-in-
userland dance before the suicide was a tad crazy. So (although
this still requires the aforementioned dance), perhaps, there should be
a way for other userland hw-monitoring daemons to talk to powerd?
Just a thought, NUT's upsmon works almost as well as it can already.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (NetBSD)
-----END PGP SIGNATURE-----