systemd: add reload target to systemd unit
Users can now run `systemctl reload wg-quick@wgnet0`, as described in
the wg-quick(8) man page. Note that this won't adjust Address=, DNS=, or
the various other non-wg(8) fields.
Signed-off-by: Domonkos P. Tomcsanyi <domi@tomcsanyi.net>
[zx2c4: use exec for bash commands to reduce excess forks, and rewrite
        commit message]
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
			
			
This commit is contained in:
		
							parent
							
								
									eb4665ecf0
								
							
						
					
					
						commit
						a66219fa10
					
				@ -15,6 +15,7 @@ Type=oneshot
 | 
			
		||||
RemainAfterExit=yes
 | 
			
		||||
ExecStart=/usr/bin/wg-quick up %i
 | 
			
		||||
ExecStop=/usr/bin/wg-quick down %i
 | 
			
		||||
ExecReload=/bin/bash -c 'exec /usr/bin/wg syncconf %i <(exec /usr/bin/wg-quick strip %i)'
 | 
			
		||||
Environment=WG_ENDPOINT_RESOLUTION_RETRIES=infinity
 | 
			
		||||
 | 
			
		||||
[Install]
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user