Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Apr 2009 18:28:13 +1000 (EST)
From:      Ian Smith <smithi@nimnet.asn.au>
To:        Chuck Swiger <cswiger@mac.com>
Cc:        freebsd-acpi@freebsd.org, FreeBSD Stable List <freebsd-stable@freebsd.org>, Andriy Gapon <avg@icyb.net.ua>
Subject:   Re: 6.x acpi powerbutton
Message-ID:  <20090418170826.T34434@sola.nimnet.asn.au>
In-Reply-To: <1F394E42-BB02-41AC-8A52-C47A76EC55C9@mac.com>
References:  <49DE1F8B.2080400@earthlink.net> <49DE2E6D.5050001@icyb.net.ua> <49DE596E.2050406@earthlink.net> <49DEFF53.1040306@icyb.net.ua> <49DF7A1C.90009@root.org> <20090418043432.O34434@sola.nimnet.asn.au> <49E8D824.1000001@root.org> <1F394E42-BB02-41AC-8A52-C47A76EC55C9@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 17 Apr 2009, Chuck Swiger wrote:
 > On Apr 17, 2009, at 12:27 PM, Nate Lawson wrote:
 > > > Perhaps a silly question, but is it too late at this stage of the game
 > > > to try logging S5 events to syslog before dying?  I agree with Stephen,
 > > > logging 'shutdown by powerbutton' surely beats what might otherwise
 > > > resemble a spontaneous reboot?  Or is something already logged here?
 > > 
 > > I'm not resisting this, but I'm having trouble seeing the importance.
 > > What happens differently than if someone hits CTRL-ALT-DEL on a virtual
 > > console?
 > 
 > Well, I'd like to get a one-line message saying "rebooted by CTRL-ALT-DEL"
 > versus "shutdown by powerbutton".  Other systems would log a one-liner like
 > "system rebooted by /etc/shutdown -i 6: _MESSAGE_"....

I don't know about C-A-D as I've always disabled it in my kernels - lest 
some 'windows expert' may be hoping to see a TaskList - but 'reboot' and 
'shutdown -[rhp] ..' are already logged nicely:

May 31 16:25:26 paqi reboot: rebooted by root
May 31 16:25:26 paqi syslogd: exiting on signal 15
May 31 16:26:30 paqi syslogd: kernel boot file is /boot/kernel/kernel

Mar 31 20:04:14 paqi shutdown: power-down by smithi: down after fixing localtime Sydney
Mar 31 19:04:32 paqi named[16442]: stopping command channel on 127.0.0.1#953
Mar 31 19:04:33 paqi named[16442]: exiting
Mar 31 19:04:33 paqi syslogd: exiting on signal 15
Mar 31 19:07:16 paqi syslogd: kernel boot file is /boot/kernel/kernel

I suspect a 'windows expert' would have to break down doors to get to 
Nate's boxes, but for those of us condemned to being remote catherders, 
a powerbutton shutdown message would be helpful.

cheers, Ian



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090418170826.T34434>