From owner-freebsd-net@FreeBSD.ORG  Mon Apr 26 08:21:26 2010
Return-Path: <owner-freebsd-net@FreeBSD.ORG>
Delivered-To: freebsd-net@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 6D2D51065670
	for <freebsd-net@freebsd.org>; Mon, 26 Apr 2010 08:21:26 +0000 (UTC)
	(envelope-from jdc@koitsu.dyndns.org)
Received: from qmta04.emeryville.ca.mail.comcast.net
	(qmta04.emeryville.ca.mail.comcast.net [76.96.30.40])
	by mx1.freebsd.org (Postfix) with ESMTP id 583AA8FC0C
	for <freebsd-net@freebsd.org>; Mon, 26 Apr 2010 08:21:26 +0000 (UTC)
Received: from omta17.emeryville.ca.mail.comcast.net ([76.96.30.73])
	by qmta04.emeryville.ca.mail.comcast.net with comcast
	id A8301e0021afHeLA488HsU; Mon, 26 Apr 2010 08:08:17 +0000
Received: from koitsu.dyndns.org ([98.248.46.159])
	by omta17.emeryville.ca.mail.comcast.net with comcast
	id A88G1e0033S48mS8d88Gvy; Mon, 26 Apr 2010 08:08:16 +0000
Received: by icarus.home.lan (Postfix, from userid 1000)
	id 2A7749B425; Mon, 26 Apr 2010 01:08:15 -0700 (PDT)
Date: Mon, 26 Apr 2010 01:08:15 -0700
From: Jeremy Chadwick <freebsd@jdc.parodius.com>
To: freebsd-rc@freebsd.org
Message-ID: <20100426080815.GA41938@icarus.home.lan>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.20 (2009-06-14)
Cc: freebsd-net@freebsd.org
Subject: rc(8) script -- waiting for the network to become usable
X-BeenThere: freebsd-net@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Networking and TCP/IP with FreeBSD <freebsd-net.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-net>,
	<mailto:freebsd-net-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-net>
List-Post: <mailto:freebsd-net@freebsd.org>
List-Help: <mailto:freebsd-net-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-net>,
	<mailto:freebsd-net-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Mon, 26 Apr 2010 08:21:26 -0000

Foremost, sorry for the cross-post, but more eyes in this case means
overall more discussion.  Secondly, please keep me CC'd as I'm not on
either -rc or -net.

I recently proposed addition of a new script to the rc framework which
verifies (using ping) that layer 3 network connectivity is up/functional
before continuing on with daemons which require network access:

http://lists.freebsd.org/pipermail/freebsd-stable/2010-April/056400.html

The overall response was positive, with full acknowledgement that this
is indeed a hack -- yet necessary -- and that something more appropriate
could probably be introduced into the base system to provide a much
cleaner solution (launchd was mentioned).

I'd like folks (particularly on -rc) to chime in here, and please see
about adding this to the base system.

Please note there's one typo in the script (a line which needs to be
commented out) in my original post which I've since fixed in the version
that's available via HTTP.

Thank you!

-- 
| 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 |