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.
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.
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.
I agree. Even a couple of blank lines would help.
On 05/30/2011 05:42 PM, Timothy Murphy wrote:
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.
I agree. Even a couple of blank lines would help.
Indeed. Am I the only one on the list that thinks that XYZZY would be appropriate?
On 05/30/2011 07:07 PM, Joe Zeff wrote:
On 05/30/2011 05:42 PM, Timothy Murphy wrote:
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.
I agree. Even a couple of blank lines would help.
Indeed. Am I the only one on the list that thinks that XYZZY would be appropriate?
Nothing happens!
John
On Mon, 2011-05-30 at 19:07 -0700, Joe Zeff wrote:
On 05/30/2011 05:42 PM, Timothy Murphy wrote:
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.
I agree. Even a couple of blank lines would help.
Indeed. Am I the only one on the list that thinks that XYZZY would be appropriate?
You are in a maze of twisty little passages, all alike ...
poc
On 05/30/2011 09:07 PM, Joe Zeff wrote:
On 05/30/2011 05:42 PM, Timothy Murphy wrote:
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.
I agree. Even a couple of blank lines would help.
Indeed. Am I the only one on the list that thinks that XYZZY would be appropriate?
A hollow voice says, "Plugh."
On Mon, 2011-05-30 at 18:36 -0400, Tom Horsley wrote:
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?
I used to do something like that back when I was still using another OS. I modified the bootup script to add my own entry at the beginning. You could do the same, I don't think the script gets changed by updates that often.