Subject: Re: dmesg not going to /var/run/dmesg.boot
To: David Brownlee <abs@netbsd.org>
From: netbsd alpha <netbsd_alpha@yahoo.com>
List: port-alpha
Date: 10/04/2000 13:14:24
--- David Brownlee <abs@netbsd.org> wrote:
> 	Random thought - does '/etc/rc.d/dmesg start' work?
> 

it appears to work according to the time stamp below:


# ls -l /var/run/
total 14
-rw-r--r--  1 root  wheel     4 Oct  4 03:17 cron.pid
-rw-r--r--  1 root  wheel  8160 Oct  4 03:28
dmesg.boot
...
# /etc/rc.d/dmesg start
# ls -l /var/run
total 14
-rw-r--r--  1 root  wheel     4 Oct  4 03:17 cron.pid
-rw-r--r--  1 root  wheel  8160 Oct  4 15:12
dmesg.boot
...
#
>                 David/absolute
> 			       -- www.netbsd.org: A pmap for every
> occasion --
> 
> 
> On Wed, 4 Oct 2000, netbsd alpha wrote:
> 
> > i'm running current as off 10/3 on PWS 500au. when
> i
> > upgraded to -current, i no longer see the output
> of
> > dmesg in /var/run/dmesg.boot.
> > 
> > # grep dmesg /etc/defaults/rc.conf
> > dmesg=YES               dmesg_flags=""          #
> > write /var/run/dmesg.boot
> > 
> > that shows that the flag is set in
> > /etc/defaults/rc.conf
> > 
> > and i've not override it in 
> > # grep dmesg /etc/rc.conf
> > #
> > 
> > the file does exist in
> > # ls /etc/rc.d/dmesg
> > /etc/rc.d/dmesg
> > 
> > # cat /etc/rc.d/dmesg
> > #!/bin/sh
> > #
> > # $NetBSD: dmesg,v 1.3.4.2 2000/10/02 01:09:23
> lukem
> > Exp $
> > #
> > 
> > # PROVIDE: dmesg
> > # REQUIRE: mountcritremote
> > 
> > . /etc/rc.subr
> > 
> > name="dmesg"
> > rcvar=$name
> > start_cmd="do_dmesg"
> > stop_cmd=":"
> > 
> > do_dmesg()
> > {
> >         rm -f /var/run/dmesg.boot
> >         dmesg $dmesg_flags > /var/run/dmesg.boot
> > }
> > 
> > load_rc_config $name
> > run_rc_command "$1"
> > #
> > 
> > if i run the command manually:
> > 
> > dmesg $dmesg_flags > /var/run/dmesg.boot
> > 
> > then it shows up in /var/run/
> > 
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Photos - 35mm Quality Prints, Now Get 15
> Free!
> > http://photos.yahoo.com/
> > 
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Photos - 35mm Quality Prints, Now Get 15 Free!
http://photos.yahoo.com/