yggdrasil-go/contrib/systemd/yggdrasil.service

22 lines
494 B
SYSTEMD
Raw Normal View History

2018-01-28 14:59:22 +03:00
[Unit]
Description=yggdrasil
Wants=network.target
Wants=yggdrasil-default-config.service
2018-01-28 14:59:22 +03:00
After=network.target
After=yggdrasil-default-config.service
2018-01-28 14:59:22 +03:00
[Service]
Group=yggdrasil
2018-01-28 14:59:22 +03:00
ProtectHome=true
ProtectSystem=true
SyslogIdentifier=yggdrasil
2019-11-25 07:54:30 +03:00
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_RAW
ExecStartPre=+-/sbin/modprobe tun
ExecStart=/usr/local/bin/yggdrasil -useconffile /etc/yggdrasil.conf
2019-02-19 01:31:34 +03:00
ExecReload=/bin/kill -HUP $MAINPID
2018-01-28 14:59:22 +03:00
Restart=always
2019-09-27 11:37:34 +03:00
TimeoutStopSec=5
2018-01-28 14:59:22 +03:00
[Install]
WantedBy=multi-user.target