From owner-freebsd-current Sun Feb 2 9:19:44 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E380137B401; Sun, 2 Feb 2003 09:19:42 -0800 (PST) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id A08D143F75; Sun, 2 Feb 2003 09:19:41 -0800 (PST) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.12.6/8.12.5) with SMTP id h12HJRP4074888; Sun, 2 Feb 2003 12:19:27 -0500 (EST) (envelope-from robert@fledge.watson.org) Date: Sun, 2 Feb 2003 12:19:26 -0500 (EST) From: Robert Watson X-Sender: robert@fledge.watson.org To: Oliver Brandmueller Cc: freebsd-current@FreeBSD.ORG, imp@FreeBSD.ORG Subject: Re: Question about devd concept In-Reply-To: <20030202165352.GA6957@e-Gitt.NET> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, 2 Feb 2003, Oliver Brandmueller wrote: > Sorry for answering my own mail now. > > On Sun, Feb 02, 2003 at 03:19:24PM +0100, Oliver Brandmueller wrote: > > action "/usr/local/etc/netconf/bin/netconf $device-name start"; > > David Wolfskill gave a good pointer, that devd starts before all > non-root disks are mounted. I'm just trying to move my script to the > root partition (for the moment I move it to /etc/netconf/ just to test > it). Although the scripts works when manually started after booting I > have still no evidence it is even called on boot, but for the moment I > suspect my script maybe has some problems in that early stage and I will > try to give it some debugging stuff. > > I'll keep you informed 'bout my findings. I ran into a similar problem, actually -- programs like dhclient rely on being able to write to lease and pid files. It's almost as though we'd like an additional set of events when the system is "more booted". I.e., a devd event for each device when the network is started, etc. Actually, I suspect what we want is to have a seperate network event management daemon -- arrival of the device is not the same as arrival of the interface. dhclient events (and related things) should happen as a result of the interface arriving, not the newbus device arrival. I.e., a netd that listens to routing socket and kqueue events relating to the network stack. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Network Associates Laboratories To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message