Re: How can I tell if my machine has rebooted?
- From: birre <spamtrap@xxxxxxxxxxxx>
- Date: Wed, 28 May 2008 10:40:43 +0200
On 2008-05-28 09:20, Johan Lindquist wrote:
So anyway, it was like, 18:37 CEST May 27 2008, you know? Oh, and, yeah,
J.O. Aho was all like, "Dude,
[..]
Otherwise you can use:
last | grep reboot | head
Useless use of grep? 'last reboot | head' :)
When using 'last', one has to take into account whether logrotate is
being run from cron too, since then you'll only see the logins and
reboots since last time the lastlog was rotated out.
I'd suggest installing uptimed for those interesting uptime and reboot
statistics.
The problem you describe is due to an insane way to prune wtmp that most
systems use, where they just null wtmp.
The correct way to prune wtmp is to copy utmp to wtmp.
Then your last reboot, level changes and all current sessions are preserved.
One can also do
vi rebooted
leave the editor open, and if the machine crash, one get a mail saying
that the edito buffert rebooted was saved at <date> when the system crashed :-)
/bb
.
- References:
- How can I tell if my machine has rebooted?
- From: Diego
- Re: How can I tell if my machine has rebooted?
- From: s. keeling
- Re: How can I tell if my machine has rebooted?
- From: Diego
- Re: How can I tell if my machine has rebooted?
- From: Rikishi 42
- Re: How can I tell if my machine has rebooted?
- From: J.O. Aho
- Re: How can I tell if my machine has rebooted?
- From: Johan Lindquist
- How can I tell if my machine has rebooted?
- Prev by Date: Re: How can I tell if my machine has rebooted?
- Next by Date: Re: How can I tell if my machine has rebooted?
- Previous by thread: Re: How can I tell if my machine has rebooted?
- Next by thread: Re: How can I tell if my machine has rebooted?
- Index(es):
Relevant Pages
|
|