Subject: Re: delay needed after started named?
To: Martin Husemann <martin@duskware.de>
From: Wolfgang S. Rupprecht <wolfgang+gnus20040504T122000@dailyplanet.dontspam.wsrcc.com>
List: netbsd-users
Date: 05/04/2004 15:14:43
> If this would be implemented as a regulary rc.d script, it would need a way
> to restart rcorder and the whole rc.d execution, this time passing the
> selected configuration as a parameter and avoiding a second dhcpclient
> run.

I wonder if it would be enough to just turn a few daemons off by doing
something like:

    /etc/rc:

    for _rc_elem in $files; do
	    run_rc_script $_rc_elem start
	    if [ -f /tmp/rc.conf ]
	    then
		    . /tmp/rc.conf
		    /bin/rm -f /tmp/rc.conf
	    fi
    done

And then /tmp/rc.conf could have lines like this to turn deamons that
are already rc_order-ed back off.

    unset defaultroute
    rpcbind=NO
    ntpdate=NO
    rtsol=NO
    ntpd=NO
    lpd=NO
    mountd=NO
    nfs_client=NO
    nfs_server=NO
    lockd=NO
    statd=NO
    amd=NO

-wolfgang