Update debian package to fix systemd disabling (not good for remote systems) and add group yggdrasil for admin socket/conf

This commit is contained in:
Neil Alexander 2018-12-14 14:25:26 +00:00
parent ce98aac504
commit e1c7983752
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
2 changed files with 19 additions and 8 deletions

View file

@ -4,6 +4,7 @@ Wants=network.target
After=network.target
[Service]
Group=yggdrasil
ProtectHome=true
ProtectSystem=true
SyslogIdentifier=yggdrasil
@ -12,7 +13,7 @@ ExecStartPre=/bin/sh -ec "if ! test -s /etc/yggdrasil.conf; \
yggdrasil -genconf > /etc/yggdrasil.conf; \
echo 'WARNING: A new /etc/yggdrasil.conf file has been generated.'; \
fi"
ExecStart=/bin/sh -c "exec yggdrasil -useconf < /etc/yggdrasil.conf"
ExecStart=/usr/bin/yggdrasil -useconffile /etc/yggdrasil.conf
Restart=always
[Install]