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
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.
Jonathan Kollasch
PGP SIGNATURE
Version: GnuPG v1.4.2 (NetBSD)
NZqdiMHaneSXacBDzX+MIs=
=TlCX
PGP SIGNATURE