Skip site navigation (1)Skip section navigation (2)
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>

next in thread | previous in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55E08B75-1A33-4480-B099-D694C669A285>