Skip to content

Commit 88dd4f1

Browse files
committed
fix(ns-ha): stop dnsmasq at each sync
Sometime dnsmasq just start for unknown reason. Make sure it stays put.
1 parent f888ad3 commit 88dd4f1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/ns-ha/files/500-dhcp-force

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,7 @@ elif [ "$ACTION" == "NOTIFY_BACKUP" ]; then
1414
uci set dhcp.$section.force='0'
1515
done
1616
uci commit dhcp
17+
else
18+
# Sometimes dnsmasq starts when it should not: stop it at every sync and during shutdown
19+
/etc/init.d/dnsmasq stop 2&>/dev/null
1720
fi

0 commit comments

Comments
 (0)