mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2024-11-14 03:20:28 +00:00
4b16c325a3
Systemd: move config generation to a separate unit
22 lines
488 B
Desktop File
22 lines
488 B
Desktop File
[Unit]
|
|
Description=yggdrasil
|
|
Wants=network.target
|
|
Wants=yggdrasil-default-config.service
|
|
After=network.target
|
|
After=yggdrasil-default-config.service
|
|
|
|
[Service]
|
|
Group=yggdrasil
|
|
ProtectHome=true
|
|
ProtectSystem=true
|
|
SyslogIdentifier=yggdrasil
|
|
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_RAW
|
|
ExecStartPre=+-/sbin/modprobe tun
|
|
ExecStart=/usr/bin/yggdrasil -useconffile /etc/yggdrasil.conf
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
Restart=always
|
|
TimeoutStopSec=5
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|