mirror of
https://github.com/clearlinux/micro-config-drive.git
synced 2026-08-21 04:57:19 +00:00
d0f1601944
Instead of creating a unique service file for each provider, just use a single instance service. We'll change the symlinks in packaging.
18 lines
419 B
Plaintext
18 lines
419 B
Plaintext
[Unit]
|
|
Description=micro-config-drive job for %I
|
|
After=network.target systemd-networkd.service
|
|
Wants=local-fs.target sshd.service sshd-keygen.service
|
|
ConditionPathExists=!/var/lib/cloud/%I-user-data
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=@prefix@/bin/ucd-data-fetch %I
|
|
RemainAfterExit=yes
|
|
TimeoutSec=0
|
|
|
|
# Output needs to appear in instance console output
|
|
StandardOutput=journal+console
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|