mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2024-11-10 05:10:26 +00:00
7068160b20
- Modular unit composition: different tasks in separate units - Use systemd tool set to run checks - Avoid using inline shell in unit
22 lines
473 B
Desktop File
22 lines
473 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
|
|
CapabilityBoundSet=CAP_NET_ADMIN
|
|
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
|