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
		
			
				
	
	
		
			17 lines
		
	
	
		
			387 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			387 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/sh
 | 
						|
 | 
						|
# Source Qubes library.
 | 
						|
# shellcheck source=init/functions
 | 
						|
. /usr/lib/qubes/init/functions
 | 
						|
 | 
						|
if [ "$2" = "up" ]; then
 | 
						|
    /usr/lib/qubes/qubes-setup-dnat-to-ns
 | 
						|
 | 
						|
    # FIXME: Tinyproxy does not reload DNS servers.
 | 
						|
    if under_systemd ; then
 | 
						|
        systemctl --no-block try-restart qubes-updates-proxy.service
 | 
						|
    else
 | 
						|
        service qubes-updates-proxy try-restart
 | 
						|
    fi
 | 
						|
fi
 |