Home > How To > Shutdown Logs Linux

Shutdown Logs Linux

Contents

It may help you with your problem. Browse other questions tagged linux or ask your own question. It's free: ©2000-2016 nixCraft. I'll try. weblink

The following (bash) command will display the log in colour, as it appears during shutdown: sed $'s/\^\[/\E/g;s/\[1G\[/\[27G\[/' /var/log/boot | less -r See this question for more details on this - http://stackoverflow.com/questions/10757823/display-file-with-escaped-color-codes-boot-messages-from-bootlog-daemon/19011140 For the boot process, there is the bootlogd package which creates the file /var/log/boot, but nothing for the shutdown/reboot process. Copy the two init scripts Make the 'reversed' script change stop to start instead of start to stop. share|improve this answer answered Jul 29 '10 at 9:30 Janne Pikkarainen 5,2491626 add a comment| up vote 4 down vote The /var/log/messages file should contain this information share|improve this answer answered

Shutdown Logs Linux

Wed Oct 27 01:00 - 02:00 (18+02:00) shutdown system down 2.6.18-194.8.1.e Thu Aug 12 00:18 - 09:02 (20+08:43) shutdown system down 2.6.18-194.8.1.e Wed Jul 14 14:07 - 16:19 (5+02:12) shutdown system Farming after the apocalypse: chickens or giant cockroaches? Use the last command to display system reboot and shutdown date and time, run: $ who –b Sample outputs:system boot Apr 30 15:08Use the last command to display listing of last

Of course, if the server runs some service (e.g. How is the ATC language structured? Just a little change and we're talking physical education Why does Luke ignore Yoda's advice? How To Check Last Reboot Time In Linux Why is JK Rowling considered 'bad at math'?

When does bugfixing become overkill, if ever? How To Check Server Reboot Reason Linux E.g. share|improve this answer answered Oct 30 '12 at 0:17 solde9 612 Thanks, but I confess that I didn't understand anything. http://unix.stackexchange.com/questions/53252/how-to-read-the-messages-during-power-off Also, Debian 8 probably does it differently.

up vote 15 down vote favorite 8 How can tell that my last shutdown was properly done in Ubuntu 11.10 or if the machine was powered off before shutting down the Reboot Log Linux All these troubles where caused by an broken CPU fan. For me the line is: reboot -d -f -i Again just insert the following on a new line above: read -p "Press enter to reboot" reply Note also that these files What does Differential Geometry lack in order to "become Relativity" - References Is there a word for spear-like?

How To Check Server Reboot Reason Linux

Converting Game of Life images to lists What to do with my out of control pre teen daughter Previous company name is ISIS, how to list on CV? Not the answer you're looking for? Shutdown Logs Linux Why does Luke ignore Yoda's advice? How To Check Reboot Logs In Linux Does flooring the throttle while traveling at lower speeds increase fuel consumption?

The Dice Star Strikes Back What is the difference (if any) between "not true" and "false"? No damage to the hardware?! –Sigur Feb 18 '14 at 11:26 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign I believe the most reliable solution is:date -d "`cut -f1 -d. /proc/uptime` seconds ago" Reply Link lavermil June 13, 2011, 9:02 pmThe uptime idea from Sam is nice but really that It's free: ©2000-2016 nixCraft. Ubuntu Shutdown Log

Why aren't there direct flights connecting Honolulu, Hawaii and London, UK? Part of my shutdown/reboot process is to remount the rootfs readonly and umount everything else, after this logging to a file that will still be there at the next boot is current community blog chat Super User Meta Super User your communities Sign up or log in to customize your list. check over here However, running last -x works.

There are only sysctl.conf sysctl.d/ systemd/. –Sigur Feb 17 '14 at 13:49 1 try /etc/rsyslog.conf –kaboom Feb 18 '14 at 6:11 add a comment| up vote 0 down vote For How To Check System Reboot Logs In Linux You could edit these, some upgrades would clobber the changes though. –Graeme Feb 19 '14 at 18:03 The only function or binary which is relevant, is start-stop-daemon from OPs Miller Aug 30 08:45:58 asterisk kernel: libcxgbi:libcxgbi_init_module: tag itt 0x1fff, 13 bits, age 0xf, 4 bits.Aug 30 08:45:58 asterisk kernel: libcxgbi:ddp_setup_host_page_size: system PAGE 4096, ddp idx 0.Aug 30 08:45:58 asterisk kernel:

I don't know if I really need to install all those programs. –Sigur Oct 30 '12 at 0:20 3 That probably won't help you -- you appear to be asking

share|improve this answer edited Feb 20 '14 at 15:20 answered Feb 20 '14 at 14:49 Graeme 19.2k34177 add a comment| up vote 1 down vote You need to edit all the If you have the plymouth splash screen on shutdown that hides the console messages with the Ubuntu logo and progress dots, then hit ESC to see what's going on behind the When I returned home, I discovered that my computer was off. Rhel Shutdown Log The tail command is your friend.

If so, how do I use core dumps? UV lamp to disinfect raw sushi fish slices Is it correct to write "teoremo X statas, ke" in the sense of "theorem X states that"? What could make an area of land be accessible only at certain times of the year? this content If there was a kernel panic search for "kernel panic" on the logs dir: grep -r "kernel panic" /var/log share|improve this answer answered Feb 3 '11 at 18:18 Joao Pinto 12.3k23853

Is there some log in /var/log that could point me in the right direction? And for some reason, Ubuntu Oneiric never records any of the shutdown messages, even errors warnings and "[fail]s", at least not anywhere I can find them using sudo grep. Looking at bandwidth logs before shut down does not indicate anything unusual. The above will also only work if /var/log is on the rootfs.

I could read something about umount and other messages that I don't remember. Well, I was not worrying about this but today my laptop frozen during shutting down.