Add Systemd path as trigger for service
This commit is contained in:
		
							
								
								
									
										6
									
								
								systemd-templates/set-ip-routes.path
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								systemd-templates/set-ip-routes.path
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
			
		||||
[Unit]
 | 
			
		||||
Description=Detect WireGuard VPN activation
 | 
			
		||||
 | 
			
		||||
[Path]
 | 
			
		||||
PathExists=/sys/class/net/wg0
 | 
			
		||||
Unit=set-ip-routes.service
 | 
			
		||||
		Reference in New Issue
	
	Block a user