From owner-freebsd-questions Mon May 14 22:57:26 2001 Delivered-To: freebsd-questions@freebsd.org Received: from gekko.i-clue.de (server.ms-agentur.de [62.153.134.194]) by hub.freebsd.org (Postfix) with ESMTP id D57DA37B424 for ; Mon, 14 May 2001 22:57:21 -0700 (PDT) (envelope-from so@server.i-clue.de) Received: from i-clue.de (automatix.i-clue.de [192.168.0.112]) by gekko.i-clue.de (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id IAA15680; Tue, 15 May 2001 08:04:39 +0200 Message-ID: <3B00C5A3.2000501@i-clue.de> Date: Tue, 15 May 2001 07:58:59 +0200 From: Christoph Sold Organization: i-clue GmbH, Waiblingen, Germany User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9) Gecko/20010505 X-Accept-Language: de, en MIME-Version: 1.0 To: Siegbert Baude Cc: questions@FreeBSD.ORG Subject: Re: /var/run/dmesg.boot additional question References: <15104.3363.384718.498063@guru.mired.org> <004401c0dcb3$cfd6ee40$9aea5fd8@mshome.net> <3B009D11.CC1F7320@gmx.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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: #!/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 HTH -Christoph Sold To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message