Merge remote-tracking branch 'qubesos/pr/92'
* qubesos/pr/92: network: reload DNS only on "up" event from NetworkManager
This commit is contained in:
		
						commit
						65be69db5a
					
				@ -4,11 +4,13 @@
 | 
				
			|||||||
# shellcheck source=init/functions
 | 
					# shellcheck source=init/functions
 | 
				
			||||||
. /usr/lib/qubes/init/functions
 | 
					. /usr/lib/qubes/init/functions
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/usr/lib/qubes/qubes-setup-dnat-to-ns
 | 
					if [ "$2" = "up" ]; then
 | 
				
			||||||
 | 
					    /usr/lib/qubes/qubes-setup-dnat-to-ns
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# FIXME: Tinyproxy does not reload DNS servers.
 | 
					    # FIXME: Tinyproxy does not reload DNS servers.
 | 
				
			||||||
if under_systemd ; then
 | 
					    if under_systemd ; then
 | 
				
			||||||
        systemctl --no-block try-restart qubes-updates-proxy.service
 | 
					        systemctl --no-block try-restart qubes-updates-proxy.service
 | 
				
			||||||
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