Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 May 2001 07:58:59 +0200
From:      Christoph Sold <so@server.i-clue.de>
To:        Siegbert Baude <siegbert.baude@gmx.de>
Cc:        questions@FreeBSD.ORG
Subject:   Re: /var/run/dmesg.boot additional question
Message-ID:  <3B00C5A3.2000501@i-clue.de>
References:  <15104.3363.384718.498063@guru.mired.org> <004401c0dcb3$cfd6ee40$9aea5fd8@mshome.net> <3B009D11.CC1F7320@gmx.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Siegbert Baude wrote:

>>Each  time, when I boot the system, the system will display a lot of
>>messages. If I don't want the message display and only save them in
>>/var/run/dmesg.boot, How do this?
>>
> 
> My question is the other way round.  I would like to have the output
> of the rc scripts (mounting disks, network initialization, Linux ABI,
> ...) also in dmesg. Is there an easy way to achieve this, without
> editing all rc scripts manually?
> Are those messages in any other log by default?


For exactly this reason, I added a small script to /etc/rc.local:
<snip>
#!/bin/sh
#
# bootlog: log the boot messages into a separate file in case the dmesg
# buffer overflows

$f = "boot."`date '+%y%m%d%H%M'`".log"
dmesg > $f
</snip>

HTH
-Christoph Sold


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B00C5A3.2000501>