6.x acpi powerbutton
Ian Smith
smithi at nimnet.asn.au
Sat Apr 18 08:28:18 UTC 2009
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
More information about the freebsd-stable
mailing list