mirror of
https://github.com/yggdrasil-network/yggdrasil-go
synced 2024-11-09 23:20:26 +03:00
25 lines
684 B
Plaintext
25 lines
684 B
Plaintext
|
[Unit]
|
||
|
Description=Yggdrasil Network
|
||
|
Wants=network-online.target
|
||
|
Wants=yggdrasil-default-config.service
|
||
|
After=network-online.target
|
||
|
After=yggdrasil-default-config.service
|
||
|
|
||
|
[Service]
|
||
|
Group=yggdrasil
|
||
|
ProtectHome=true
|
||
|
ProtectSystem=strict
|
||
|
NoNewPrivileges=true
|
||
|
RuntimeDirectory=yggdrasil
|
||
|
ReadWritePaths=/var/run/yggdrasil/ /run/yggdrasil/
|
||
|
SyslogIdentifier=yggdrasil
|
||
|
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
|
||
|
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
|
||
|
ExecStartPre=+-/sbin/modprobe tun
|
||
|
ExecStart=/usr/bin/yggdrasil -useconffile /etc/yggdrasil/yggdrasil.conf
|
||
|
ExecReload=/bin/kill -HUP $MAINPID
|
||
|
Restart=always
|
||
|
TimeoutStopSec=5
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|