Files
vanlink/ap/van-ap-dnsmasq.service
andreasandClaude Haiku 4.5 f2d4cdd099 Fix dnsmasq startup dependency: require bridge setup before DHCP
dnsmasq was failing to start or staying inactive because it was starting
before the bridge members were added. Updated van-ap-dnsmasq.service to
depend on van-br0-setup.service, ensuring the bridge is ready before
dnsmasq binds to br0.

Fixes: DHCP not provisioning addresses on boot.
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-09-19 08:11:12 -04:00

12 lines
378 B
Desktop File

[Unit]
Description=dnsmasq DHCP+DNS for van-ap AP
After=hostapd.service van-br0-setup.service
Wants=hostapd.service van-br0-setup.service
[Service]
ExecStartPre=/usr/sbin/dnsmasq --test --conf-file=/etc/van-ap/dnsmasq.conf
ExecStart=/usr/sbin/dnsmasq --keep-in-foreground --conf-file=/etc/van-ap/dnsmasq.conf
Restart=on-failure
RestartSec=2
[Install]
WantedBy=multi-user.target