mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Restart unbound after server IP change
This commit is contained in:
parent
e8869d75c1
commit
a4c26403b4
1 changed files with 2 additions and 0 deletions
|
@ -317,6 +317,7 @@ _check_master() {
|
|||
/etc/init.d/shadowsocks-libev restart >/dev/null 2>/dev/null
|
||||
/etc/init.d/shadowsocks-rust restart >/dev/null 2>/dev/null
|
||||
/etc/init.d/openvpn restart omr >/dev/null 2>/dev/null
|
||||
/etc/init.d/unbound restart >/dev/null 2>/dev/null
|
||||
/etc/init.d/dnsmasq restart >/dev/null 2>/dev/null
|
||||
}
|
||||
break
|
||||
|
@ -503,6 +504,7 @@ _check_backup() {
|
|||
/etc/init.d/shadowsocks-libev restart >/dev/null 2>/dev/null
|
||||
/etc/init.d/shadowsocks-rust restart >/dev/null 2>/dev/null
|
||||
/etc/init.d/openvpn restart omr >/dev/null 2>/dev/null
|
||||
/etc/init.d/unbound restart >/dev/null 2>/dev/null
|
||||
/etc/init.d/dnsmasq restart >/dev/null 2>/dev/null
|
||||
}
|
||||
[ "$server_ping" = true ] && break
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue