You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've noticed that wifi-presence does not start cleanly on boot for me. I suspect the issue is that hostapd hasn't started yet, and there are no control sockets found by wifi-presence when it starts.
Restarting the process manually after boot is fine, so I'm not sure what the best way of resolving this is, whether it be through procd, or through wifi-presence itself.
Cheers,
Jon
The text was updated successfully, but these errors were encountered:
Thanks for the report. I've noticed that too, where wifi-presence fails to start likely because of what you described. In my case though, procd restarts it and eventually it works.
We could consider something like the following in the start_service function.
for i in 1 2 3 4 5 6 7 8 9 10; do
if [ -d "${hostapdSockDir}" ] && find "${hostapdSockDir}" -type s | grep . >/dev/null; then
# hostapd socket(s) found
break
fi
# No hostapd socket found, retrying in 1s
sleep 1
done
The START=95 setting should mean that wifi-presence is started after hostapd (START=19).
Hi Adam,
I've noticed that
wifi-presence
does not start cleanly on boot for me. I suspect the issue is thathostapd
hasn't started yet, and there are no control sockets found bywifi-presence
when it starts.Restarting the process manually after boot is fine, so I'm not sure what the best way of resolving this is, whether it be through
procd
, or throughwifi-presence
itself.Cheers,
Jon
The text was updated successfully, but these errors were encountered: