yggdrasil-go/contrib/systemd/yggdrasil.service

22 lines
523 B
SYSTEMD
Raw Normal View History

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