Hi Jean-Fran,cois, Jean-Frangois SIMON wrote on Sat, May 28, 2011 at 01:25:17PM +0200:
> Please could you help me to log all messages of dmesg to a file - > I've been reading the man pages syslogd & its conf file but I'm not > sure how to properly set it up ... No need to set up anything, rc(8) saves the dmesg(8) output by default to /var/run/dmesg.boot. The syslog* manuals don't mention this because syslog is not involved. However, the following might help - or, Jason, do you think it's overdone? Yours, Ingo Index: sbin/dmesg/dmesg.8 =================================================================== RCS file: /cvs/src/sbin/dmesg/dmesg.8,v retrieving revision 1.11 diff -u -r1.11 dmesg.8 --- sbin/dmesg/dmesg.8 31 May 2007 19:19:43 -0000 1.11 +++ sbin/dmesg/dmesg.8 28 May 2011 12:12:59 -0000 @@ -61,7 +61,9 @@ .Sh FILES .Bl -tag -width /var/run/dmesg.boot -compact .It Pa /var/run/dmesg.boot -copy of dmesg created at boot +copy of dmesg saved by +.Xr rc 8 +at boot time .El .Sh SEE ALSO .Xr syslogd 8 Index: share/man/man8/rc.8 =================================================================== RCS file: /cvs/src/share/man/man8/rc.8,v retrieving revision 1.36 diff -u -r1.36 rc.8 --- share/man/man8/rc.8 29 Apr 2011 07:08:27 -0000 1.36 +++ share/man/man8/rc.8 28 May 2011 12:12:59 -0000 @@ -105,7 +105,10 @@ then asks .Xr rc.conf 8 for configuration variables, -mounts filesystems, starts system daemons, +mounts filesystems, +saves a copy of the system message buffer to the file +.Pa /var/run/dmesg.boot , +starts system daemons, preserves editor files, clears the scratch directory .Pa /tmp , @@ -187,6 +190,9 @@ not to run .Xr fsck 8 during the next boot. +.It Pa /var/run/dmesg.boot +.Xr dmesg 8 +output saved at boot time .El .Sh SEE ALSO .Xr sysctl.conf 5 ,

