/var/log/messages question
R. G. Newbury
newbury at mandamus.org
Tue May 31 14:25:44 UTC 2011
> 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.
It is far easier to add: echo "Completed boot at `date`"
to the bottom of /etc/rc.d/rc.local
Then it does not matter whether the system is using the old method or
systemd and whether it is writing to 'messages' or boot.log.
R. Geoffrey Newbury
More information about the users
mailing list