From owner-freebsd-net@FreeBSD.ORG Mon Apr 26 08:59:53 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 4C8D6106564A for ; Mon, 26 Apr 2010 08:59:53 +0000 (UTC) (envelope-from mad@madpilot.net) Received: from megatron.madpilot.net (megatron.madpilot.net [88.149.173.206]) by mx1.freebsd.org (Postfix) with ESMTP id 508BE8FC13 for ; Mon, 26 Apr 2010 08:59:52 +0000 (UTC) Received: from megatron.madpilot.net (localhost [127.0.0.1]) by megatron.madpilot.net (Postfix) with ESMTP id 283431856; Mon, 26 Apr 2010 10:59:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=madpilot.net; h= user-agent:in-reply-to:content-disposition:content-type :content-type:mime-version:references:message-id:subject:subject :from:from:date:date:received:received; s=mail; t=1272272388; x= 1274086788; bh=s2dqmsmP4aSwQFMGDx+dw/2/fpHSNH5+u7gnpii9kiI=; b=V 8WQI/YkCztRqdVGmvHlE768EoeEiW0uouVsw0pufswCehLtU9zMgvBgl+FJeo6xO eGybRVmGmT4A2pgEMq5Oifru3b77J0Z9Swn7UKSwTB98CdI7O1bfSP3tvAdHxqcO 3LQ/oDeXSlUQXgQiFBp+kz27662ZSRQEbivtp+MXtA= X-Virus-Scanned: amavisd-new at madpilot.net Received: from megatron.madpilot.net ([127.0.0.1]) by megatron.madpilot.net (megatron.madpilot.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 0vFvJYKG5yRU; Mon, 26 Apr 2010 10:59:48 +0200 (CEST) Received: by megatron.madpilot.net (Postfix, from userid 1000) id 42D971850; Mon, 26 Apr 2010 10:59:48 +0200 (CEST) Date: Mon, 26 Apr 2010 10:59:48 +0200 From: Guido Falsi To: Jeremy Chadwick Message-ID: <20100426085947.GB20779@megatron.madpilot.net> References: <20100426080815.GA41938@icarus.home.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100426080815.GA41938@icarus.home.lan> X-Operating-System: FreeBSD 8.0-STABLE User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-net@freebsd.org, freebsd-rc@freebsd.org 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: Mon, 26 Apr 2010 08:59:53 -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 did read the original thread, and like the idea. I myself have servers winth ntpd failing to configure tiself at boot due to this problem and was thinking of some hack to force the behaviour you suggest. So I obviously like your idea and would like to see this in the base system. Regarding launchd, I don't know much about it, but I do like the rc system and having the boot sequence managed by scripts one can easily modify to taste. I'd rather not modify this system with some daemon performing obscure tasks based on some configuration file. The flexibility given by scripts is imho, quite superior to any configurable daemon's. This is just my opinion, obviously. As stated I don't know much about launchd, and it is quite possible that I have misconceptions about it, so please don't flame me if I insulted it! Thank you for your effort and work to bring this to the masses! -- Guido Falsi