mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 03:05:07 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
	
		
			656 B
		
	
	
	
		
			Desktop File
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
	
		
			656 B
		
	
	
	
		
			Desktop File
		
	
	
	
	
	
[Unit]
 | 
						|
Description=yggdrasil
 | 
						|
Wants=network.target
 | 
						|
After=network.target
 | 
						|
 | 
						|
[Service]
 | 
						|
Group=yggdrasil
 | 
						|
ProtectHome=true
 | 
						|
ProtectSystem=true
 | 
						|
SyslogIdentifier=yggdrasil
 | 
						|
CapabilityBoundingSet=CAP_NET_ADMIN
 | 
						|
ExecStartPre=+-/sbin/modprobe tun
 | 
						|
ExecStartPre=/bin/sh -ec "if ! test -s /etc/yggdrasil.conf; \
 | 
						|
                then umask 077; \
 | 
						|
                yggdrasil -genconf > /etc/yggdrasil.conf; \
 | 
						|
                echo 'WARNING: A new /etc/yggdrasil.conf file has been generated.'; \
 | 
						|
            fi"
 | 
						|
ExecStart=/usr/bin/yggdrasil -useconffile /etc/yggdrasil.conf
 | 
						|
ExecReload=/bin/kill -HUP $MAINPID
 | 
						|
Restart=always
 | 
						|
TimeoutStopSec=5
 | 
						|
 | 
						|
[Install]
 | 
						|
WantedBy=multi-user.target
 |