mirror of
				https://github.com/nadoo/glider.git
				synced 2025-11-04 07:42:38 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			571 B
		
	
	
	
		
			Desktop File
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			571 B
		
	
	
	
		
			Desktop File
		
	
	
	
	
	
[Unit]
 | 
						|
Description=Glider Service (%i)
 | 
						|
After=network.target iptables.service ip6tables.service
 | 
						|
 | 
						|
[Service]
 | 
						|
Type=simple
 | 
						|
User=nobody
 | 
						|
Restart=always
 | 
						|
 | 
						|
# NOTE: change to your glider path
 | 
						|
ExecStart=/usr/bin/glider -config /etc/glider/%i.conf
 | 
						|
 | 
						|
# work with systemd v229 or later, so glider can listen on port below 1024 with none-root user
 | 
						|
# CAP_NET_ADMIN: ipset
 | 
						|
# CAP_NET_BIND_SERVICE: bind ports under 1024
 | 
						|
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
 | 
						|
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
 | 
						|
NoNewPrivileges=true
 | 
						|
 | 
						|
[Install]
 | 
						|
WantedBy=multi-user.target
 |