mirror of
https://github.com/yggdrasil-network/yggdrasil-go
synced 2024-11-09 23:20:26 +03:00
7068160b20
- Modular unit composition: different tasks in separate units - Use systemd tool set to run checks - Avoid using inline shell in unit
14 lines
356 B
Desktop File
14 lines
356 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/bin/yggdrasil -genconf
|
|
ExecStartPost=/usr/bin/chmod 0640 /etc/yggdrasil.conf
|