[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: problems with udhcpd
From:       Denys Vlasenko <vda.linux () googlemail ! com>
Date:       2018-01-31 20:59:59
Message-ID: CAK1hOcPRxNWsZ2i+nPqT4xZ93p8m9LwzxfKYhPa68Usx01Ur_Q () mail ! gmail ! com
[Download RAW message or body]

On Wed, Jan 31, 2018 at 9:51 PM, Xabier Oneca  --  xOneca
<xoneca@gmail.com> wrote:
> Hello Matti,
>
>> I'm starting the hotspot along these lines:
>>     ifdown wlan0
>>     rfkill unblock wlan
>>     killall wpa_supplicant
>>     killall udhcpc
>>     echo 2 > /sys/module/bcmdhd/parameters/op_mode
>>     ifup wlan0
>>     udhcpd /etc/udhcpd.conf
>>     hostapd /etc/hostapd.conf &
>>     udhcpd start
>
> Shouldn't hostapd be started *before* dhcpd? Also, hostapd has -B to daemonize.

Wouldn't be reliable anyway: there is nothing to prevent
udhcpd to race with hostapd. It will die whenever interface is going down.

I suggest stopping playing russian roulette and putting all your daemons
into a service supervision system of your choosing. I personally use
a system described here:

https://git.busybox.net/busybox/tree/examples/var_service/README

See "Networking examples" section, and other files beside README
in this directory.

However, you can use any other system you like.
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic