yggdrasil-go/contrib/systemd/yggdrasil.service

22 lines
564 B
SYSTEMD
Raw Permalink Normal View History

2018-01-28 11:59:22 +00:00
[Unit]
Description=yggdrasil
Wants=network.target
After=network.target
[Service]
Group=yggdrasil
2018-01-28 11:59:22 +00:00
ProtectHome=true
ProtectSystem=true
SyslogIdentifier=yggdrasil
ExecStartPre=/bin/sh -ec "if ! test -s /etc/yggdrasil.conf; \
then umask 077; \
yggdrasil -genconf > /etc/yggdrasil.conf; \
echo 'WARNING: A new /etc/yggdrasil.conf file has been generated.'; \
fi"
ExecStart=/usr/bin/yggdrasil -useconffile /etc/yggdrasil.conf
2018-01-28 11:59:22 +00:00
Restart=always
[Install]
WantedBy=multi-user.target
Also=yggdrasil-resume.service