Comments (2)
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
).
from wifi-presence.
Thanks. Yes, this approach makes sense to me. Do you want to roll the fix for this and #3 into a single PR?
from wifi-presence.
Related Issues (15)
- daemon.err wifi-presence[6693]: Error: unable to connect to hostapd control socket "/var/run/hostapd/wlan0": ping error: read error from "PING" command: read unixgram /tmp/wp.wlan0->/var/run/hostapd/wlan0: i/o timeout HOT 7
- JSON configuration persistency HOT 3
- Support for newer version of hostapd in OpenWrt master HOT 3
- __nanosleep_time64: symbol not found HOT 2
- Ability to publish status for all devices HOT 1
- opkg version outdated HOT 1
- MQTT entity name starts with the device name HOT 2
- Roaming between multiple APs HOT 2
- Conflict with wpad-basic-mbedtls HOT 1
- Support for MQTT over TLS (MQTTS)?
- Needs to be started as network user/group in openwrt HOT 14
- Error in wifi-presence: EventUnrecognized HOT 4
- SSID with mixed UTF-8 and ASCII characters cannot be handled correctly HOT 3
- Doesn't work after update to 22.03.0 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wifi-presence.