From 4e3076f0b69ced2d99b894ec594229bd02a3a966 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sat, 19 Dec 2015 18:44:32 +0100 Subject: [PATCH] updates-proxy: restart on network configuration change to reload DNS Apparently tinyproxy does not notice /etc/resolv.conf change, so need to be kicked to reload it. Fixes QubesOS/qubes-issues#1530 --- network/qubes-nmhook | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/network/qubes-nmhook b/network/qubes-nmhook index f985ec7..42d2dbb 100755 --- a/network/qubes-nmhook +++ b/network/qubes-nmhook @@ -1,2 +1,9 @@ #!/bin/sh /usr/lib/qubes/qubes-setup-dnat-to-ns + +# Tinyproxy does not reload DNS servers +if [ -x /bin/systemctl ]; then + /bin/systemctl --no-block try-restart qubes-updates-proxy.service +else + /usr/sbin/service qubes-updates-proxy try-restart +fi