LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 01-04-2007, 11:56 AM   #1
ashley75
Member
 
Registered: Aug 2003
Posts: 232

Rep: Reputation: 30
shutdown log file


could someone please tell me where I can find the information of when the server being shutdown/start on Linux RH 4.0?

thanks,
 
Old 01-04-2007, 12:44 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,493
Blog Entries: 15

Rep: Reputation: 1463Reputation: 1463Reputation: 1463Reputation: 1463Reputation: 1463Reputation: 1463Reputation: 1463Reputation: 1463Reputation: 1463Reputation: 1463
There is no shutdownlog like there is on some UNIX variants.

You should be able to figure out stop/start times by:

1) Running "uptime" which will show you how long it has been up. You can figure out last boot from that.

2) who -b (doesn't work in some distros) will give you actual date/time of last boot.

3) last -x will show you what /var/log/wtmp recorded for shutdowns. (Note you may have to specify last -x -f /var/log/wtmp.1 or something similar to see older logs.)
 
Old 01-04-2007, 12:56 PM   #3
ashley75
Member
 
Registered: Aug 2003
Posts: 232

Original Poster
Rep: Reputation: 30
thanks so where do you see the info like this?

Jan 1 22:23:41 test portmap: portmap shutdown succeeded
Jan 1 22:23:41 test kernel: Kernel logging (proc) stopped.
Jan 1 22:23:41 test kernel: Kernel log daemon terminating.
Jan 1 22:23:44 test syslog: klogd shutdown succeeded
Jan 1 22:23:44 test exiting on signal 15
Jan 1 21:48:04 test syslogd 1.4.1: restart.
 
Old 01-04-2007, 01:01 PM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978Reputation: 1978
Usually they are in /var/log/messages.
 
Old 01-04-2007, 01:12 PM   #5
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,493
Blog Entries: 15

Rep: Reputation: 1463Reputation: 1463Reputation: 1463Reputation: 1463Reputation: 1463Reputation: 1463Reputation: 1463Reputation: 1463Reputation: 1463Reputation: 1463
Right. I guess I should have mentioned you can do it by inference based on seeing all the messages that occur during shut downs and boots in /var/log/messages (or messages.1 etc...)

Also for the most recent boot assuming you haven't had a lot of events typing "dmesg" will give you some quick information.

Your later question makes it sound as if you're looking for something like HP-UX's /etc/rc.log which is great but unfortunately only exists on HP-UX.
 
  


Reply


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
any ideas to reduce log file size or make log file size managed? George2 Programming 2 08-13-2006 06:55 AM
Log out of X and shutdown with one (or two) click? drakebasher Linux - Software 12 02-14-2006 11:45 PM
Kdm will not let me log out or shutdown J_Szucs Linux - General 3 05-27-2005 10:00 AM
where is log for shutdown xkwauk Linux - Software 2 05-28-2004 07:18 PM
where is the shutdown log? hamish Red Hat 4 09-28-2003 05:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:29 AM.

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