Date: Sun, 25 Oct 2015 12:45:10 -0700 From: NGie Cooper <yaneurabeya@gmail.com> To: lev@FreeBSD.org Cc: freebsd-current <freebsd-current@freebsd.org> Subject: Re: What changed in rc.d infrastructure in last months? Message-ID: <55E08B75-1A33-4480-B099-D694C669A285@gmail.com> In-Reply-To: <221574465.20151025223928@serebryakov.spb.ru> References: <16610120144.20151025222025@serebryakov.spb.ru> <DA78289A-176E-44EF-A2A2-1CEE10DF54ED@gmail.com> <221574465.20151025223928@serebryakov.spb.ru>
index | next in thread | previous in thread | raw e-mail
> On Oct 25, 2015, at 12:39, Lev Serebryakov <lev@FreeBSD.org> wrote:
>
> Hello NGie,
>
> Sunday, October 25, 2015, 10:30:47 PM, you wrote:
>
>
>> 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?
>
> It looks weird.
It depends on how it’s setup. Is your interface is using DHCP and are you using the stock devd.conf file? From 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 };
…
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
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55E08B75-1A33-4480-B099-D694C669A285>
