Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Fedora User (http://www.linux-archive.org/fedora-user/)
-   -   /var/log/messages question (http://www.linux-archive.org/fedora-user/532729-var-log-messages-question.html)

Tom Horsley 05-30-2011 10:36 PM

/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

Peter Gordon 05-30-2011 11:05 PM

/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


All times are GMT. The time now is 03:54 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.