Merge pull request #563 from Arano-kai/feature/systemd_ensure_tun

Systemd: tun module and capabilities
This commit is contained in:
Neil Alexander 2019-10-05 10:26:07 +01:00 committed by GitHub
commit c600711a8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,6 +8,8 @@ Group=yggdrasil
ProtectHome=true
ProtectSystem=true
SyslogIdentifier=yggdrasil
CapabilityBoundSet=CAP_NET_ADMIN
ExecStartPre=+/sbin/modprobe tun
ExecStartPre=/bin/sh -ec "if ! test -s /etc/yggdrasil.conf; \
then umask 077; \
yggdrasil -genconf > /etc/yggdrasil.conf; \