From owner-freebsd-net@FreeBSD.ORG Tue Apr 27 17:15:45 2010 Return-Path: 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 590DC1065673 for ; Tue, 27 Apr 2010 17:15:45 +0000 (UTC) (envelope-from nlandys@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id AE3468FC18 for ; Tue, 27 Apr 2010 17:15:44 +0000 (UTC) Received: by vws11 with SMTP id 11so480151vws.13 for ; Tue, 27 Apr 2010 10:15:38 -0700 (PDT) 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=gSez5EUEm+uPGZwkaOrAzEpcoGSx3TGeiFmmcQmz+W8=; b=S2BeiS1d6quOtZ+Lk8PI1YpWvZGl7nma8SnuzGI1F2vPbfsUpX0wjmJZhyHWBflBoZ b9scRvTTNbDZxYeM7jDzsk1nMTThqw79lD2L29kVSt6ZPdbDSM5L8xEfpfM2um00VcMf YSL+BnXbkkv8pxDzRuisnZYlWEK3A6UxXeI9I= 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=H4eUhbEmV+dF4Rw8TouH5SJKdYtiXFQ/OD27m2ZvUt7qt1lxHI9/LDplFIn/O+R9Xl U2bnbEjl7E1mhypoKiWmoESsh1qhInIVOEC8omSJjNMXxkggBJsol2Y/0IsuTu3KP0Gn VFEgAsDyG4QtBKTCMXYog5d9vG+RiXwyyl7Ak= MIME-Version: 1.0 Received: by 10.229.232.144 with SMTP id ju16mr7681044qcb.107.1272388538659; Tue, 27 Apr 2010 10:15:38 -0700 (PDT) Received: by 10.229.102.88 with HTTP; Tue, 27 Apr 2010 10:15:38 -0700 (PDT) In-Reply-To: <20100427165753.GA58954@lor.one-eyed-alien.net> References: <20100426080815.GA41938@icarus.home.lan> <20100427165753.GA58954@lor.one-eyed-alien.net> Date: Tue, 27 Apr 2010 10:15:38 -0700 Message-ID: From: Nerius Landys To: Brooks Davis Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-net@freebsd.org, freebsd-rc@freebsd.org, Jeremy Chadwick Subject: Re: 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Apr 2010 17:15:45 -0000 > On Mon, Apr 26, 2010 at 01:08:15AM -0700, Jeremy Chadwick wrote: >> 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. > > Given that this would fix the problems many users see in the current > world order and that it's relativly unintrusive I think it's an ok thing > to add. I was having problems with services such as ntpd starting before the network came up on my server. I wrote a similar script in /usr/local/etc/rc.d/ that pings one of the root name servers for 100 seconds or until it responds, whichever comes first. It fixed my problem. So, yeah, a script to do this would be most welcome.