From owner-freebsd-current@FreeBSD.ORG Wed Aug 22 03:15:13 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 08605106566C for ; Wed, 22 Aug 2012 03:15:13 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id C1A828FC12 for ; Wed, 22 Aug 2012 03:15:12 +0000 (UTC) Received: by pbbrp2 with SMTP id rp2so857854pbb.13 for ; Tue, 21 Aug 2012 20:15:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=vm2LKoM4ApIXzob2Rc92VNdz3ZKhrgQVgb2yQjZh8Mg=; b=hv/WM7v1gecJcx22uAkzTG5D4vlmm4x/Sob8tggAZxvdmxwPJ3rc+6owJ2/ndQgIEB b9fj7bQROm02+0JHEaL6t7+rb1CWlcMQVDsM9D5FcxfJS5/8To9i2Phxf9xUVbyDJf5S BRCD8yjHhneEjc2tSx96DKbIYUaWQ2ya4EXR/PpbdDqnBT0bOKhGnhuXnS4BgNVzIoNx WlMFfDA1/JvYDCpVPZp+bsF1zd4ZFaJt8NYvZiE/YGkzYxT65Yxi57gSOwItRJFDq3PA pwlOsJa0WEryQC6refjEfA15xUQihCiqACz6qxE2IIaNd6YfMDsMIGmvx0SGP6Z7UVd4 wOwQ== Received: by 10.66.88.233 with SMTP id bj9mr42568412pab.72.1345605312397; Tue, 21 Aug 2012 20:15:12 -0700 (PDT) Received: from [10.0.0.63] (50-78-194-198-static.hfc.comcastbusiness.net. [50.78.194.198]) by mx.google.com with ESMTPS id tv6sm2732749pbc.24.2012.08.21.20.15.10 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 21 Aug 2012 20:15:11 -0700 (PDT) Sender: Warner Losh Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=koi8-r From: Warner Losh In-Reply-To: <20120821230037.GE88729@zxy.spb.ru> Date: Tue, 21 Aug 2012 21:15:08 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <835A0305-C273-402A-826E-C2A87BD062F8@bsdimp.com> References: <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> <1844966139.20120822023623@serebryakov.spb.ru> <20120821230037.GE88729@zxy.spb.ru> To: Slawa Olhovchenkov X-Mailer: Apple Mail (2.1084) X-Gm-Message-State: ALoCoQktOkfgE1+nsgvwk1yzh80TWPcRo3fb3C1rtPCu3KhPwVsCleEXwq2SdSqheRcbX+Tfg8Zm Cc: Ian Lepore , Lev Serebryakov , freebsd-current@freebsd.org 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 List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Aug 2012 03:15:13 -0000 On Aug 21, 2012, at 5:00 PM, Slawa Olhovchenkov wrote: > On Wed, Aug 22, 2012 at 02:36:23AM +0400, Lev Serebryakov wrote: >=20 >> Hello, Ian. >> You wrote 22 =C1=D7=C7=D5=D3=D4=C1 2012 =C7., 1:38:04: >>=20 >> IL> For example, this script can replace devd as a daemon that = restarts >> IL> dhclient when any link comes back up... >>=20 >> 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 = -CURRENT >> 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? >>=20 >> 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! >>=20 >> 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). >=20 > Time ago synchronous_dhclient is waiting for obtain IP by dhcpclient. > w/o synchronous_dhclient and ifconfig_bge0=3D"DHCP" dhcpclient run in > background and don't paused boot while obtaining IP address. > On perinterface basis: ifconfig_bge0=3D"SYNCDHCP" or = ifconfig_bge0=3D"NOSYNCDHCP" >=20 > Background start of dhcpclient currently by devd, on UP event on > ethernet interface. This introduction in 6.2. 2006-08-22. This is why monkeying with default behavior and not documenting changes = are both bad ideas. Warner