LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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-01-2008, 02:55 PM   #1
neilneil2000
LQ Newbie
 
Registered: Jun 2008
Distribution: Ubuntu Hardy Heron 8.04
Posts: 25

Rep: Reputation: 15
tty2 boot output - log file?


Is there a log file where the output that can be seen on tty2 during boot is kept?

I am after the

BLAH BLAH BLAH [OK]
BLAH BLAH BLAH [fail]
 
Old 06-01-2008, 04:24 PM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
NOt 100% sure it is what you seek, but try /var/log/dmesg.

SVA
 
Old 06-01-2008, 07:04 PM   #3
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
The dmesg just showes kernel messages ... I think what the OP is looking for is a log of the service start-up. AFAIK this is not kept anywhere (at least on the distros I am familiar with), however the log files in /var/log will have the logging messages produced by each individual application.
 
Old 06-01-2008, 08:46 PM   #4
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Quote:
Originally Posted by btmiller View Post
The dmesg just showes kernel messages ... I think what the OP is looking for is a log of the service start-up. AFAIK this is not kept anywhere (at least on the distros I am familiar with), however the log files in /var/log will have the logging messages produced by each individual application.
"Services" starting up (that's relatively late in the boot) should definitely be recorded in /var/log, provided the services themselves are sufficiently configured for debugging, and/or are being logged at all. Check 'syslog', 'messages', and 'debug' files.

Otherwise, as for the very early stuff I agree: if the OP wants stuff from PRE-dmesg it isn't as easy as one might like AFAIK.
Maybe it's overkill, but a serial or USB (debug device) cable hooked to a (host) second computer would provide everything possible.

On my machine, I modified all the startup scripts so that *everything* that happens gets logged; by default, there was much less logging.

Perhaps we need to wait & see exactly what the OP is looking for

Sasha

Last edited by GrapefruiTgirl; 06-01-2008 at 08:49 PM.
 
Old 06-03-2008, 03:45 PM   #5
neilneil2000
LQ Newbie
 
Registered: Jun 2008
Distribution: Ubuntu Hardy Heron 8.04
Posts: 25

Original Poster
Rep: Reputation: 15
Hi all,

I have had a look through the logs you have mentioned but I was looking for the simple [OK] [fail] output. It is just easier for me to see what exactly failed, because the logs can be a bit cryptic if they are for a service you haven't played with before.

Looks to me from your response that this output isn't logged anywhere which is a shame, although GrapefruiTGirl mentioned modifying the logging. Could I get what I want...somehow?
 
Old 06-03-2008, 04:08 PM   #6
divyashree
Senior Member
 
Registered: Apr 2007
Location: bbsr,orissa,India
Distribution: RHEL5 ,RHEL4,CENT OS5,FEDORA,UBUNTU
Posts: 1,362

Rep: Reputation: 135Reputation: 135
look the script /etc/init.d/functions
 
Old 06-09-2008, 04:34 PM   #7
neilneil2000
LQ Newbie
 
Registered: Jun 2008
Distribution: Ubuntu Hardy Heron 8.04
Posts: 25

Original Poster
Rep: Reputation: 15
this script does not exist on my machine
 
Old 06-09-2008, 07:54 PM   #8
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
Please add your distro name & ver to your profile, you'll get better help that way.
 
Old 06-10-2008, 06:13 AM   #9
neilneil2000
LQ Newbie
 
Registered: Jun 2008
Distribution: Ubuntu Hardy Heron 8.04
Posts: 25

Original Poster
Rep: Reputation: 15
Done
 
Old 06-10-2008, 11:54 AM   #10
divyashree
Senior Member
 
Registered: Apr 2007
Location: bbsr,orissa,India
Distribution: RHEL5 ,RHEL4,CENT OS5,FEDORA,UBUNTU
Posts: 1,362

Rep: Reputation: 135Reputation: 135
Quote:
Originally Posted by neilneil2000 View Post
this script does not exist on my machine
hey brother open that script in vi editor....
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
output apache log directly to tty2 coal-fire-ice Linux - Server 4 04-26-2007 07:48 PM
Redirect /dev/ttyS0 input/output to tty2 Kymbo Linux - General 1 09-07-2006 11:07 AM
How to direct output both log file and to terminal... freebies Linux - General 1 02-25-2005 07:32 AM
How to redirect standard output of piped command to log file andrewstr Linux - General 10 02-04-2004 03:07 PM
Log Screen Output to a file sdandeker Linux - Newbie 3 09-17-2003 03:57 AM


All times are GMT -5. The time now is 04:14 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