mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2024-11-27 12:05:23 +00:00
14 lines
356 B
SYSTEMD
14 lines
356 B
SYSTEMD
|
[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/bin/yggdrasil -genconf
|
||
|
ExecStartPost=/usr/bin/chmod 0640 /etc/yggdrasil.conf
|