From owner-freebsd-current@FreeBSD.ORG Mon Aug 17 05:23:30 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1C02E106568C for ; Mon, 17 Aug 2009 05:23:30 +0000 (UTC) (envelope-from sziszi@bsd.hu) Received: from mail.rubicom.hu (mail.rubicom.hu [89.147.80.28]) by mx1.freebsd.org (Postfix) with ESMTP id 93B1F8FC5A for ; Mon, 17 Aug 2009 05:23:29 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=mail.rubicom.hu) by mail.rubicom.hu with smtp (Exim 4.63) (envelope-from ) id 1Mcu7W-0000ht-K0 for freebsd-current@freebsd.org; Mon, 17 Aug 2009 06:46:58 +0200 Received: from ip59935289.rubicom.hu ([89.147.82.137] helo=baranyfelhocske.buza.adamsfamily.xx) by mail.rubicom.hu with esmtp (Exim 4.63) (envelope-from ) id 1Mcu7W-0000hm-EC for freebsd-current@freebsd.org; Mon, 17 Aug 2009 06:46:58 +0200 Received: from baranyfelhocske.buza.adamsfamily.xx (localhost [127.0.0.1]) by baranyfelhocske.buza.adamsfamily.xx (8.14.3/8.14.3) with ESMTP id n7H4kw86001955 for ; Mon, 17 Aug 2009 06:46:58 +0200 (CEST) (envelope-from sziszi@bsd.hu) Received: (from sziszi@localhost) by baranyfelhocske.buza.adamsfamily.xx (8.14.3/8.14.3/Submit) id n7H4kwLT001954 for freebsd-current@freebsd.org; Mon, 17 Aug 2009 06:46:58 +0200 (CEST) (envelope-from sziszi@bsd.hu) X-Authentication-Warning: baranyfelhocske.buza.adamsfamily.xx: sziszi set sender to sziszi@bsd.hu using -f Date: Mon, 17 Aug 2009 06:46:58 +0200 From: Szilveszter Adam To: freebsd-current@freebsd.org Message-ID: <20090817044658.GA1504@baranyfelhocske.buza.adamsfamily.xx> References: <90E06EA7-4D27-411C-962F-BBCB6D6A13C6@mac.com> <4A88C31C.70204@haruhiism.net> <20090817025829.GH74242@bunrab.catwhisker.org> <4A88D06F.2000408@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4A88D06F.2000408@FreeBSD.org> User-Agent: Mutt/1.5.20 (2009-06-14) Subject: Re: rc(8) regression. What's the story? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Aug 2009 05:23:30 -0000 On Sun, Aug 16, 2009 at 08:37:19PM -0700, Doug Barton wrote: > David Wolfskill wrote: > > > * Create a new rc.d script that sleeps until an IP address is assigned. > > > > I think the latter would be most flexible, as the appropriate keywords > > could be specified for precisely those rc.d/* scripts that actually need > > an IP address in order to function, though implementing it might > > engender rather more churn in /etc/rc.d/* than folks might prefer. > > This is definitely the preferred solution, and has been discussed in > the past on the rc.d list. Well, this would probably cover the story of DHCP + slow media change detection (or just plain slow DHCP). However, there are similar (and way worse) problems if you are using a machine with a wlan interface, even without DHCP. In this case, an IP address is immediately assigned as soon as the wlanX interface is created, but that does not mean that traffic can flow. In my case, getting an association with an iwi(4) card lasts about 15-25 seconds. True, NTPD does not exit because an IP address is configured, but the spamming that it (and stuff like sendmail) produce on the console bears witness to the fact that they are not prepared to handle this situation... I will not even start to imagine what happens if I add a DHCP server into this mix... > One way to implement this would be to specify a default address to > ping, and make it overridable, similar to how I did the named_wait > feature. Bonus points if the user has ntpd enabled and we can pick one > of the server lines from ntp.conf at random. This, however, would be a much better solution, because it would also cover slow wireless. -- Regards: Szilveszter ADAM Budapest Hungary