mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Restart dnsmasq if needed
This commit is contained in:
parent
66310e3866
commit
6008b81460
1 changed files with 6 additions and 0 deletions
|
@ -1594,7 +1594,13 @@ if [ -f /etc/init.d/glorytun-udp ] && [ "$(pgrep glorytun-udp)" = "" ] && [ "$(u
|
||||||
sleep 5
|
sleep 5
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$(pgrep dnsmasq)" = "" ] && [ -f /etc/init.d/dnsmasq ]; then
|
||||||
|
_log "Can't find dnsmasq, restart it..."
|
||||||
|
/etc/init.d/dnsmasq restart 2>&1 >/dev/null
|
||||||
|
sleep 5
|
||||||
|
fi
|
||||||
if [ "$(pgrep unbound)" = "" ] && [ -f /etc/init.d/unbound ] && [ "$(uci -q get unbound.@unbound[0].enabled)" = "1" ]; then
|
if [ "$(pgrep unbound)" = "" ] && [ -f /etc/init.d/unbound ] && [ "$(uci -q get unbound.@unbound[0].enabled)" = "1" ]; then
|
||||||
|
_log "Can't find unbound, restart it..."
|
||||||
/etc/init.d/unbound restart 2>&1 >/dev/null
|
/etc/init.d/unbound restart 2>&1 >/dev/null
|
||||||
sleep 5
|
sleep 5
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue