yggdrasil-go/contrib/systemd/yggdrasil-default-config.service

14 lines
368 B
Desktop File

[Unit]
Description=yggdrasil default config generator
ConditionPathExists=|!/etc/yggdrasil.conf
ConditionFileNotEmpty=|!/etc/yggdrasil.conf
Wants=local-fs.target
After=local-fs.target
[Service]
Type=oneshot
Group=yggdrasil
StandardOutput=file:/etc/yggdrasil.conf
ExecStart=/usr/local/bin/yggdrasil -genconf
ExecStartPost=/usr/local/bin/chmod 0640 /etc/yggdrasil.conf