On Tue, Mar 16, 2010 at 10:49:58AM +0200, Kapetanakis Giannis wrote: > On 16/03/10 01:10, Nick Holland wrote: > > >nope. Just pulled the plug out of a machine here to verify that, in > >fact. :) > > > >That just means the system came up, not that it went down formally for > >a reboot... > >... > >>Mar 15 09:46:05 server /bsd: WARNING: / was not properly unmounted > > > >and again, substantial evidence that the system went down hard and > >unexpected, but obviously came back up on its own. > > > >Nick. > > Yep, > > I justed wanted to verify wtmp entry is on > boot and not vise versa. Manual page is not strict > about that.
If you mean utmp(5), it is dead wrong about this. It needs an update. The "reboot" entry is added as part of the system startup setup done by /sbin/init. The "shutdown" line is added by /sbin/{reboot,halt}. Look for logwtmp(3) calls in their ".c".