LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-05-2008, 01:17 PM   #1
mjcocat
LQ Newbie
 
Registered: Dec 2005
Posts: 7

Rep: Reputation: 0
Redhat - Where is the log file for the initial boot process?


If I wanted to see which services failed on boot, where would I look on Red Hat? I would imagine /var/log/boot.log, but that file is empty.
 
Old 06-05-2008, 01:58 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Try the dmesg command. Also look in /var/log/messages and boot.msg.
 
Old 06-05-2008, 02:00 PM   #3
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Quote:
Originally Posted by mjcocat
I would imagine /var/log/boot.log, but that file is empty.
It normally shouldn't be empty. Is it possible the most recent boot log has been rotated to /var/log/boot.log.1? (or .2, etc.?)
 
Old 06-05-2008, 03:08 PM   #4
mjcocat
LQ Newbie
 
Registered: Dec 2005
Posts: 7

Original Poster
Rep: Reputation: 0
There is no boot.msg and I checked all of the boot.log.1 .2 etc files. This is RHEL 5
 
Old 06-05-2008, 03:17 PM   #5
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
What's the uptime on that box? Not sure about RHEL5, but on RHEL4 the logrotate default for boot.log is to rotate it weekly and keep four previous weeks' worth. If you've been up longer, they're history.

Anyway, can you explain more about what you're ultimately trying to accomplish? What is the problem, exactly?
 
Old 06-05-2008, 03:22 PM   #6
mjcocat
LQ Newbie
 
Registered: Dec 2005
Posts: 7

Original Poster
Rep: Reputation: 0
There really isn't a problem, more curiosity than anything. It came about when I booted the system and at the last second saw that something failed, but I didn't have time to see which service it was. I figured there had to be a log file for this.

I just rebooted the system, so I have an uptime of about 45 seconds. Still nothing in there except a couple of lines about dhclient...
 
Old 06-05-2008, 03:27 PM   #7
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Not sure if it helps, but this is my /etc/syslog.conf entry:
Code:
# Save boot messages also to boot.log
local7.*                                                /var/log/boot.log
Maybe double check yours. And double check that syslogd is running (!).
 
Old 06-05-2008, 03:31 PM   #8
mjcocat
LQ Newbie
 
Registered: Dec 2005
Posts: 7

Original Poster
Rep: Reputation: 0
Same thing...This is a brand new default install. Thanks anyway for your help.
 
  


Reply

Tags
log



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Which Process is writing to log file ZAMO Linux - General 4 08-17-2016 09:54 PM
How to change user's password on initial log in? Micro420 Linux - Newbie 8 11-16-2007 12:30 AM
how to backup & truncate the log file while the process is running mvenkat_in Programming 13 10-30-2007 07:03 AM
How does the (RedHat) boot process work? jdruin Red Hat 3 08-29-2003 10:15 AM
Redhat 8 Install (at initial boot!) freeze wastedimage Linux - General 17 12-29-2002 09:15 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:20 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
Open Source Consulting | Domain Registration