From owner-freebsd-hackers  Fri Jan 10 13:21:11 2003
Delivered-To: freebsd-hackers@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 00DE937B401
	for <freebsd-hackers@FreeBSD.ORG>; Fri, 10 Jan 2003 13:21:10 -0800 (PST)
Received: from clover.kientzle.com (user-112uh9a.biz.mindspring.com [66.47.69.42])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 86AAA43EB2
	for <freebsd-hackers@FreeBSD.ORG>; Fri, 10 Jan 2003 13:21:09 -0800 (PST)
	(envelope-from kientzle@acm.org)
Received: from acm.org (c43 [66.47.69.43])
	by clover.kientzle.com (8.11.3/8.11.3) with ESMTP id h0ALL7E65062;
	Fri, 10 Jan 2003 13:21:08 -0800 (PST)
	(envelope-from kientzle@acm.org)
Message-ID: <3E1F3943.2090001@acm.org>
Date: Fri, 10 Jan 2003 13:21:07 -0800
From: Tim Kientzle <kientzle@acm.org>
Reply-To: kientzle@acm.org
User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:0.9.6) Gecko/20011206
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: freebsd-hackers@FreeBSD.ORG, Dario Freni <saturnero@freesbie.org>
Subject: Re: dhclient in background?
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-freebsd-hackers@FreeBSD.ORG
Precedence: bulk
List-ID: <freebsd-hackers.FreeBSD.ORG>
List-Archive: <http://docs.freebsd.org/mail/> (Web Archive)
List-Help: <mailto:majordomo@FreeBSD.ORG?subject=help> (List Instructions)
List-Subscribe: <mailto:majordomo@FreeBSD.ORG?subject=subscribe%20freebsd-hackers>
List-Unsubscribe: <mailto:majordomo@FreeBSD.ORG?subject=unsubscribe%20freebsd-hackers>
X-Loop: FreeBSD.ORG

> As default network configuration, we've reasonally chosen a dhcp
> configuration, which is great on a dhcp network, but ugly when it has to
> wait for timeout.

> We could modify rc.network by adding a & to the dhclient row ...


Simply running dhclient in the background is probably not a
great idea, since that will allow the boot to continue and
any network programs/daemons will try to start before the
network gets initialized.  (Even if your FreesBIE distro
isn't running any network daemons, someone else will start
from your work and try to add them... )

If you're not using rcNG (sounds like you're not), then
a better approach may be to run your rc.network script
in the background.  It can then run dhclient and then
run any other network daemons only after that definitively
succeeds or fails.  Meanwhile, the rest of the boot can
proceed normally.


> Can an optional flag be added (configurable in rc.conf)?


Not to CURRENT, no.  CURRENT has adopted rcNG, for which no such
easy workaround is possible.  (Short of putting all the
network startup back into a single script file.... ;-(

Tim





To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message