network: reload DNS only on "up" event from NetworkManager
NetworkManager reports a bunch of events, reloading DNS at each of them doesn't make sense and is harmful - systemd have ratelimit on service restart. Fixes QubesOS/qubes-issues#3135
This commit is contained in:
parent
c6cdbf87b0
commit
0639a4b932
@ -4,6 +4,7 @@
|
|||||||
# shellcheck source=init/functions
|
# shellcheck source=init/functions
|
||||||
. /usr/lib/qubes/init/functions
|
. /usr/lib/qubes/init/functions
|
||||||
|
|
||||||
|
if [ "$2" = "up" ]; then
|
||||||
/usr/lib/qubes/qubes-setup-dnat-to-ns
|
/usr/lib/qubes/qubes-setup-dnat-to-ns
|
||||||
|
|
||||||
# FIXME: Tinyproxy does not reload DNS servers.
|
# FIXME: Tinyproxy does not reload DNS servers.
|
||||||
@ -12,3 +13,4 @@ if under_systemd ; then
|
|||||||
else
|
else
|
||||||
service qubes-updates-proxy try-restart
|
service qubes-updates-proxy try-restart
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user