FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 05-30-2011, 10:36 PM
Tom Horsley
 
Default /var/log/messages question

Just for curiosity, why has no one ever arranged to
log something like "Hey! I'm booting the system again!"
as the very first line in that goes to /var/log/messages
when the system is booting?

If would be real convenient to have a known string to
search for that always precedes the rest of the messages
in a new boot.
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 05-30-2011, 11:05 PM
Peter Gordon
 
Default /var/log/messages question

On 05/30/2011 03:36 PM, Tom Horsley wrote:
> If would be real convenient to have a known string to
> search for that always precedes the rest of the messages
> in a new boot.

You could try grep'ing for the Linux version string, always one of the
first several lines printed during kernel startup. Try searching for
something such as "[ 0.000000] Linux version".

Alternatively, you could search for your logger's "start" message. On my
Fedora 15 install, the first messages on each boot are:

imklog 5.7.9, log source = /proc/kmsg started.
rsyslogd: [origin software="rsyslogd" swVersion="5.7.9" x-pid="872"
x-info="http://www.rsyslog.com"] start

Hope that helps.
--
Peter Gordon (codergeek42) <peter@thecodergeek.com>
Who am I? :: http://thecodergeek.com/about-me

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 

Thread Tools




All times are GMT. The time now is 12:59 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org