From owner-freebsd-current@freebsd.org Sun Oct 25 19:45:12 2015 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2B0BD8451 for ; Sun, 25 Oct 2015 19:45:12 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-pa0-x236.google.com (mail-pa0-x236.google.com [IPv6:2607:f8b0:400e:c03::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F03DD120B; Sun, 25 Oct 2015 19:45:11 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by pacfv9 with SMTP id fv9so173232737pac.3; Sun, 25 Oct 2015 12:45:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=3s1x//Ht+TPBC3tJT2aDgEO/GJ1q/PFn8Vs5HNA4Q1U=; b=wEPcTxWDoDSByP9zsHXXWTLXAP9VbpuwmLcBdvYrjTTvhygbN4zNKQiGiz5ZnrYHRr AYX3iS8nFHOqPMRHsNXY2sPTtqKmU/VafQYWY/3fpxC6a/kVWtfiEo+j2VEo4t+Pw8co OUgzJk5GgQqs60JzI7NSiF1MXL60vFDzVGTwtQBGXW4Dc/8QjmTQW1s+njMxrP2jRdjq jin8r4HWnRK6T4UmNbm/5s5DBaeYbttq8bbrqxSWgJP1Haevtt0bmXdS8VKiG1w3kWr9 M1CuM9hLbdgoQxesB1AuUe5Zy125VObJtyaLD2RwI90UcJgvoAGuKLgWLgYio9nQ32/i 6u/w== X-Received: by 10.68.228.3 with SMTP id se3mr11558602pbc.114.1445802311609; Sun, 25 Oct 2015 12:45:11 -0700 (PDT) Received: from [192.168.20.7] (c-24-16-212-205.hsd1.wa.comcast.net. [24.16.212.205]) by smtp.gmail.com with ESMTPSA id rx10sm29927819pab.21.2015.10.25.12.45.11 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 25 Oct 2015 12:45:11 -0700 (PDT) Subject: Re: What changed in rc.d infrastructure in last months? Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Content-Type: text/plain; charset=utf-8 From: NGie Cooper X-Priority: 3 (Normal) In-Reply-To: <221574465.20151025223928@serebryakov.spb.ru> Date: Sun, 25 Oct 2015 12:45:10 -0700 Cc: freebsd-current Content-Transfer-Encoding: quoted-printable Message-Id: <55E08B75-1A33-4480-B099-D694C669A285@gmail.com> References: <16610120144.20151025222025@serebryakov.spb.ru> <221574465.20151025223928@serebryakov.spb.ru> To: lev@FreeBSD.org X-Mailer: Apple Mail (2.2104) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.20 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: Sun, 25 Oct 2015 19:45:12 -0000 > On Oct 25, 2015, at 12:39, Lev Serebryakov wrote: >=20 > Hello NGie, >=20 > Sunday, October 25, 2015, 10:30:47 PM, you wrote: >=20 >=20 >> This [the hostapd start/stop logic] all gets triggered whenever the = interface goes up and down. > So, first time hostapd is started by /etc/rc.d/netif before devd, and > second time devd call /etc/rc.d/netif again on interface up, am I = right? >=20 > It looks weird. It depends on how it=E2=80=99s setup. Is your interface is using DHCP = and are you using the stock devd.conf file? =46rom etc/devd.conf: 55 notify 0 { 56 match "system" "IFNET"; 57 match "type" "LINK_UP"; 58 media-type "ethernet"; 59 action "/etc/rc.d/dhclient quietstart $subsystem"; 60 }; =E2=80=A6 74 notify 0 { 75 match "system" "IFNET"; 76 match "type" "LINK_UP"; 77 media-type "802.11"; 78 action "/etc/rc.d/dhclient quietstart $subsystem"; 79 }; Thanks! -NGie=