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