Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 01-05-2011, 02:34 PM   #1
Registered: Dec 2001
Location: /mnt/UNV/Mlkway/Earth/USA/California/Silicon Valley
Distribution: Kubuntu 10.04, Debian Squeeze, Windoze 7
Posts: 533

Rep: Reputation: 35
Tool that shows in the logs when a system panicked, restarted unscheduled?


I have it at lot that when a system crashes fatally and restarts (due to a power outage, kernel panic, tripping over a cord or something), there is no mention of it in the log.
It just shows that the system was started.
Is there a tool that will show this in the log? With a message like "system was not shut down properly or had a fatal crash / kernel panic" when restarting?

It is pretty easy to do, just have a lock file somewhere that is removed when the system shuts down gracefully and that is left when it is not. And mechanism that checks this when starting up.

It would also be possible to tell when the crash occured, as you can update the lock file from time to time and when the systems dies, it cannot anymore.

But before doing a tool myself, I am pretty sure that there must be a tool out there already, since I am hardly the first person that requires this functionality.


Old 01-05-2011, 03:19 PM   #2
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 13,233

Rep: Reputation: 1283Reputation: 1283Reputation: 1283Reputation: 1283Reputation: 1283Reputation: 1283Reputation: 1283Reputation: 1283Reputation: 1283
"man last" ?.
Old 01-05-2011, 08:27 PM   #3
Registered: Dec 2001
Location: /mnt/UNV/Mlkway/Earth/USA/California/Silicon Valley
Distribution: Kubuntu 10.04, Debian Squeeze, Windoze 7
Posts: 533

Original Poster
Rep: Reputation: 35
Thanks, that will do the trick!




Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] is there a traceroute-like tool that shows ports as well as IP addresses? carolus Linux - Newbie 5 01-31-2010 02:15 PM
free -m shows 2GB used but gnome-system-monitor shows 1GB anjanesh Linux - General 1 03-04-2009 04:49 AM
system settings reset when computer is restarted - related to beryl the1wraith Linux - Software 0 03-04-2007 09:43 AM
A goot tool to monitor sles logs lgeo Linux - Security 2 07-23-2006 02:51 AM
iptables logs still shows up in dmesg BlueKnight Linux - Networking 10 09-09-2004 04:23 AM

All times are GMT -5. The time now is 12:01 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration