From owner-freebsd-questions@FreeBSD.ORG Thu Jan 12 15:57:54 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CD9811065676 for ; Thu, 12 Jan 2012 15:57:54 +0000 (UTC) (envelope-from dg17@penx.com) Received: from btw.pki2.com (btw.pki2.com [IPv6:2001:470:a:6fd::2]) by mx1.freebsd.org (Postfix) with ESMTP id 8E69C8FC12 for ; Thu, 12 Jan 2012 15:57:54 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by btw.pki2.com (8.14.5/8.14.5) with ESMTP id q0CFvod3066822; Thu, 12 Jan 2012 07:57:51 -0800 (PST) (envelope-from dg17@penx.com) From: Dennis Glatting To: kpneal@pobox.com In-Reply-To: <20120112145735.GB89712@neutralgood.org> References: <20120112145735.GB89712@neutralgood.org> Content-Type: text/plain; charset="us-ascii" Date: Thu, 12 Jan 2012 07:57:31 -0800 Message-ID: <1326383851.41950.10.camel@btw.pki2.com> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-yoursite-MailScanner-Information: Dennis Glatting X-yoursite-MailScanner-ID: q0CFvod3066822 X-yoursite-MailScanner: Found to be clean X-MailScanner-From: dg17@penx.com X-yoursite-MailScanner-Watermark: 1326988671.44092@AFuyn3nfAVksjU/bpgxu4A Cc: freebsd-questions@freebsd.org Subject: Re: Blocking until the network is ready at boot? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dg17@penx.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jan 2012 15:57:54 -0000 On Thu, 2012-01-12 at 09:57 -0500, kpneal@pobox.com wrote: > What's the correct way to get the rc.d scripts to block until the > network interface is _fully_ ready to carry traffic? > > The problem I'm having is that the ifconfig of the interface completes > but the port hasn't reached "status: active" yet. So the stuff that > starts next (sendmail, ntpd) can't reach the network. Is there a way > to get startup to wait until the interface is active? > I modify /etc/rc.d/netif and and insert a "sleep 15" after the ifconfig loop. It is an obnoxious problem. > I'm running FreeBSD 8.2/amd64. > > bce0: mem 0xd6000000-0xd7ffffff irq 36 at device 0.0 on pci1 > miibus0: on bce0 > brgphy0: PHY 1 on miibus0 > brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-maste > r, auto, auto-flow > bce0: Ethernet address: d4:be:d9:ac:a1:e9 > bce0: [ITHREAD] >