What changed in rc.d infrastructure in last months?

NGie Cooper yaneurabeya at gmail.com
Sun Oct 25 19:45:12 UTC 2015


> On Oct 25, 2015, at 12:39, Lev Serebryakov <lev at 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


More information about the freebsd-current mailing list