From owner-freebsd-current@FreeBSD.ORG Tue Aug 21 22:36:29 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 775C91065675 for ; Tue, 21 Aug 2012 22:36:29 +0000 (UTC) (envelope-from lev@FreeBSD.org) Received: from onlyone.friendlyhosting.spb.ru (onlyone.friendlyhosting.spb.ru [46.4.40.135]) by mx1.freebsd.org (Postfix) with ESMTP id 2B5EE8FC1B for ; Tue, 21 Aug 2012 22:36:28 +0000 (UTC) Received: from lion.home.serebryakov.spb.ru (unknown [IPv6:2001:470:923f:1:8870:d54b:33e8:55b2]) (Authenticated sender: lev@serebryakov.spb.ru) by onlyone.friendlyhosting.spb.ru (Postfix) with ESMTPA id C0B984AC2D; Wed, 22 Aug 2012 02:36:26 +0400 (MSK) Date: Wed, 22 Aug 2012 02:36:23 +0400 From: Lev Serebryakov Organization: FreeBSD Project X-Priority: 3 (Normal) Message-ID: <1844966139.20120822023623@serebryakov.spb.ru> To: Ian Lepore In-Reply-To: <1345585084.27688.377.camel@revolution.hippie.lan> References: <20120821095527.GA33206@hell.ukr.net> <67977762.20120821154035@serebryakov.spb.ru> <1959717636.20120821155308@serebryakov.spb.ru> <201208210934.31484.jhb@freebsd.org> <1049151425.20120821190433@serebryakov.spb.ru> <1345562163.27688.347.camel@revolution.hippie.lan> <709115163.20120821192652@serebryakov.spb.ru> <1345564507.27688.354.camel@revolution.hippie.lan> <1409150425.20120821210152@serebryakov.spb.ru> <1345570590.27688.367.camel@revolution.hippie.lan> <686419050.20120821214225@serebryakov.spb.ru> <1345585084.27688.377.camel@revolution.hippie.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: quoted-printable Cc: freebsd-current@freebsd.org, Warner Losh Subject: Re: r239356: does it mean, that synchronous dhcp and dhcplcinet with disabled devd gone? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: lev@FreeBSD.org List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Aug 2012 22:36:29 -0000 Hello, Ian. You wrote 22 =C1=D7=C7=D5=D3=D4=C1 2012 =C7., 1:38:04: IL> For example, this script can replace devd as a daemon that restarts IL> dhclient when any link comes back up... IL> Of course the right thing to do is invoke the proper rc scripts rather IL> than dhclient directly... this is just to illustrate how easy it is to IL> replace devd if your needs are specialized. [sigh] Everything worked with 8.x without problems. It worked with 9.x and -CURR= ENT with adding of ``synchronous_dhclient=3D"YES"'' into /etc/rc.conf (And it cost me about 2 hours of investigation, why dhclient stops to start after upgrade). Next I'll need to write some script. Is it Ok to you? Yes, I understand problem with laptops, which change wire and wireless networks and need to re-acquire new address. But it should be soleved other way. And jhb@ already posted proper solution, BTW! And, as side note, ``man rc.cof'' says NOTHING about relation of devd and ``synchronous_dhclient'' setting! It says about ``start dhclient(8) synchronously at startup'' without explaining, that without this option and with devd disabled, dhclient WILL NOT START AT ALL! And relations between devd and dhclient are not documented at all in: rc.conf(5), dhclient(8), devd.conf(5) and devd(8). And rc.conf(5) explains `devd_enable' as: Run devd(8) to handle device added, removed or unknown events from the ker= nel. And doesn't say a word about network link state. --=20 // Black Lion AKA Lev Serebryakov