From owner-freebsd-stable@FreeBSD.ORG Wed Dec 15 00:55:25 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6570F10656A5 for ; Wed, 15 Dec 2010 00:55:25 +0000 (UTC) (envelope-from lichray@gmail.com) Received: from mail-ey0-f178.google.com (mail-ey0-f178.google.com [209.85.215.178]) by mx1.freebsd.org (Postfix) with ESMTP id E347A8FC17 for ; Wed, 15 Dec 2010 00:55:24 +0000 (UTC) Received: by eyh5 with SMTP id 5so725495eyh.37 for ; Tue, 14 Dec 2010 16:55:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=3byv2tyy5wbztoEdQ8H+yVA0hLJoPLJ5W0n4H5v99oo=; b=Nm9dEPqgWKsUDp2xbDps7OnzZLsAnmchpwN2k/WFHEe95L053xP0c7mdKC1794TKdO GLVeLVoXQaBlUeLl9JeQGGLSR+DugMhoQPBb6E4oGeMPdYRIGclX57GYasaEtf7yE8Us ahY3OgriimlDRpFN28Lcworv46HEK+Uh/VPKc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=JDw3cTddmACFolM8xSLquhabLQp+3N8S3ffCGobWLIl+eeR/WIZGMiaK9hBQ7GrJe3 kAlObuoBjiHz3yx1r8B9kSIrfbCja5QEBvY1xy7Oy0sGxUqgS3pk0dNsFJi4DNeFKHRS ZDZzcBlu+wlKwCqN2IVLtHWlrBNboB6ZqTdaU= MIME-Version: 1.0 Received: by 10.213.108.201 with SMTP id g9mr4235589ebp.46.1292374522301; Tue, 14 Dec 2010 16:55:22 -0800 (PST) Received: by 10.213.4.4 with HTTP; Tue, 14 Dec 2010 16:55:22 -0800 (PST) In-Reply-To: <20101215004712.GA56065@icarus.home.lan> References: <20101215004712.GA56065@icarus.home.lan> Date: Tue, 14 Dec 2010 18:55:22 -0600 Message-ID: From: Zhihao Yuan To: Jeremy Chadwick Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Dan Allen , dougb@freebsd.org, FreeBSD-STABLE Mailing List Subject: Re: ntpd fails on boot X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Dec 2010 00:55:25 -0000 ping is slow. I hope that we can change the behavior of detecting network to something event driven. Like to insert a script into syslogd to detect the host's dhclient status (in a static IP environment, we don't need 'netwait'), or check ifconfig, something like that. On Tue, Dec 14, 2010 at 6:47 PM, Jeremy Chadwick wrote: > On Tue, Dec 14, 2010 at 05:38:49PM -0700, Dan Allen wrote: > > Recently my network connection now is setup AFTER ntpd is launched rather > than before. > > > > So when ntpd starts there is no net connection and it gives up. > > > > I read /usr/src/UPDATING but nothing is mentioned about a change in boot > order. > > > > Any ideas? > > This issue has been discussed pretty thoroughly in the past. There's no > official solution, but there is an rc.d script I wrote which addresses > this shortcoming. Nothing related to the "boot order" has changed, but > network drivers and overall methodology has changed. > > Anyway, many people are using the below with success. > > http://jdc.parodius.com/freebsd/netwait > > Official patches, including the rc.conf(5) change I propose: > > http://jdc.parodius.com/freebsd/netwait_patches/ > > Example usage (in rc.conf): > > netwait_enable="yes" > netwait_ip="4.2.2.1 4.2.2.2" > netwait_if="em0" > > For what these variables mean, please see the script itself. They are > thoroughly documented. > > -- > | Jeremy Chadwick jdc@parodius.com | > | Parodius Networking http://www.parodius.com/ | > | UNIX Systems Administrator Mountain View, CA, USA | > | Making life hard for others since 1977. PGP: 4BD6C0CB | > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > -- Zhihao Yuan The best way to predict the future is to invent it.