From owner-freebsd-net@FreeBSD.ORG Sat May 8 08:06:07 2010 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AC47D1065672; Sat, 8 May 2010 08:06:07 +0000 (UTC) (envelope-from jhellenthal@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 D1D358FC19; Sat, 8 May 2010 08:06:06 +0000 (UTC) Received: by vws17 with SMTP id 17so1224343vws.13 for ; Sat, 08 May 2010 01:05:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:date:from:to:cc :subject:in-reply-to:message-id:references:user-agent :x-openpgp-key-id:x-openpgp-key-fingerprint:mime-version :content-type; bh=5X4mOCqWjuk5IogZWA6UltnYZloi9EcAi9qC3DyorOU=; b=ig4v3rNl1afP7kQ2MFzRvYd8ypPsahdVNLBZKMdQU1mK82TCGVeDlVZihup7jGB/VS T8c63YkNacUvZk/Mgo0lixu0F9SPn0kRy2vGZLHGknLdtPijmwO+RCJtTbWfvaJS7Qaf hvWvCk9o2fbLq0nvkUqGMtQn50Y3UNB9/7US4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:x-openpgp-key-id:x-openpgp-key-fingerprint:mime-version :content-type; b=X/KO46nf4kR9T3+ODpU4fu08k4HHy3xKIQpovlp8ql4JaunuQ5xfJ8nMWkp/yy16nC vX1X5ulkGOybFL4zKlnbZlx6/h7+Q2czAlb3pVFQiDpMDuGiLcvTJD587sNP1J5To2ts HQc0y5Ym//E1NCm9n9xNXWbxZaALZJ3X33VNc= Received: by 10.220.158.6 with SMTP id d6mr954983vcx.38.1273305956046; Sat, 08 May 2010 01:05:56 -0700 (PDT) Received: from centel.dataix.local (adsl-99-19-41-129.dsl.klmzmi.sbcglobal.net [99.19.41.129]) by mx.google.com with ESMTPS id w29sm16711780vcr.2.2010.05.08.01.05.54 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 08 May 2010 01:05:54 -0700 (PDT) Sender: "J. Hellenthal" Date: Sat, 8 May 2010 04:05:18 -0400 From: jhell To: Jeremy Chadwick In-Reply-To: <20100426080815.GA41938@icarus.home.lan> Message-ID: References: <20100426080815.GA41938@icarus.home.lan> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-OpenPGP-Key-Id: 0x89D8547E X-OpenPGP-Key-Fingerprint: 85EF E26B 07BB 3777 76BE B12A 9057 8789 89D8 547E MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed 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: Sat, 08 May 2010 08:06:07 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, 26 Apr 2010 04:08, Jeremy Chadwick wrote: In Message-Id: <20100426080815.GA41938@icarus.home.lan> > 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! > > Thanks for the script Jeremy, this will really come in handy on some machines that I want to test for this case. On another note and return thanks I have made some modifications so it can be used as just a drop-in until its either committed or denied. Also renamed it as to not cause confusion with your version and to better fit my schema. Here it is: http://code.google.com/p/jhell/source/browse/base/head/scripts/rc.d/netwait/netwait Regards, - -- jhell -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iQEcBAEBAgAGBQJL5RtEAAoJEJBXh4mJ2FR+yBwH/11k0MOaPUnlxHSI+txdMg8D c5UfJzvKe5f5/VHeRpfbANuyM1ve+s2MCOdDT7C5xZ6C12Bb2JseqllXsrS8RrO0 9UwPuNr3pgP5axRSoYa9fnHelPkCNXbsl1xKEHeGHl3XvkvEGxQ5dzRwfWYAvBqx GxqTVaaQpVIcv8DlXyGCq1pFkyleQT1b9xRhrp3KZDVGUVBiJDjBoTXCeUrm7LZC ESIkn/ff5JarZfQ3t2/ZyqBt1DrMnbm2v99ZQCuL3Wg2LsGdUtiEs+XBF2lE2/4x fuW8np1L3Mn0JbWCz1LlVqjHx9Y8BrMRkBA0x/ncHjiVtodOn0NIveskswYCdww= =dj5G -----END PGP SIGNATURE-----