From owner-freebsd-stable@FreeBSD.ORG Wed Dec 15 05:03:56 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 03AC4106566B for ; Wed, 15 Dec 2010 05:03:56 +0000 (UTC) (envelope-from jonc@chen.org.nz) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id D5D068FC19 for ; Wed, 15 Dec 2010 05:03:55 +0000 (UTC) Received: by pzk32 with SMTP id 32so270678pzk.13 for ; Tue, 14 Dec 2010 21:03:55 -0800 (PST) Received: by 10.143.19.4 with SMTP id w4mr5174831wfi.192.1292389435295; Tue, 14 Dec 2010 21:03:55 -0800 (PST) Received: from localhost (118-93-184-18.dsl.dyn.ihug.co.nz [118.93.184.18]) by mx.google.com with ESMTPS id x35sm1058699wfd.1.2010.12.14.21.03.52 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 14 Dec 2010 21:03:54 -0800 (PST) Date: Wed, 15 Dec 2010 18:03:48 +1300 From: Jonathan Chen To: Dan Allen Message-ID: <20101215050348.GA2197@osiris.chen.org.nz> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: 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 05:03:56 -0000 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. Let me guess: You're on a DHCP network and the network script are running before the network address is assigned. The solution is to wait for DHCP negotiation to complete before letting the rest of the network scripts to complete. I added the following to /etc/rc.conf: ifconfig_re0="SYNCDHCP" Change re0 to your network device. Cheers. -- Jonathan Chen ---------------------------------------------------------------------- "The things we know best are the things we haven't been taught." - Marquis de Vauvenargues