2018-01-28 14:59:22 +03:00
|
|
|
[Unit]
|
|
|
|
Description=yggdrasil
|
|
|
|
Wants=network.target
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
2018-12-14 17:25:26 +03:00
|
|
|
Group=yggdrasil
|
2018-01-28 14:59:22 +03: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"
|
2018-12-14 17:25:26 +03:00
|
|
|
ExecStart=/usr/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
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|