Mailinglist Archive: opensuse-bugs (4256 mails)
| < Previous | Next > |
[Bug 737690] systemd does not honour SIGPWR
- From: bugzilla_noreply@xxxxxxxxxx
- Date: Wed, 21 Dec 2011 10:12:50 +0000
- Message-id: <20111221101250.68A06245523@molor.provo.novell.com>
https://bugzilla.novell.com/show_bug.cgi?id=737690
https://bugzilla.novell.com/show_bug.cgi?id=737690#c4
--- Comment #4 from Sebastian Freundt <devel@xxxxxxxxxx> 2011-12-21 10:12:49
UTC ---
It's the file /var/run/powerstatus
AFAIK, it can have values LOW, OK, and numbers indicating the time left in
minutes. I can only half-test the stuff myself as the UPS software isn't very
flexible in that regard.
Here's what I've found out so far:
- Initially upon a failure the file /var/run/powerstatus is created and
populated with an estimate on the battery status (in minutes)
- SIGPWR is issued to process 1
- When the power is back on, OK is written to the file and SIGPWR is issued
again
- When the battery is low and the box is to be shutdown immediately, LOW is
written to the file and SIGPWR is raised
If anything more magic than that happens I don't know, it's tricky anyway since
you've got the knowledge to fix things and I've got a UPS to test things.
If the promise is true that systemd is a drop-in replacement for sysvinit there
should be code to handle the pn/pf/po states.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
| < Previous | Next > |