homelab/packer/files/archlinux/root/etc/systemd/system/hcloud-network.service
2024-03-17 11:07:58 +01:00

15 lines
354 B
Desktop File

[Unit]
Description=Import hcloud network config
Requires=hcloud-dl-metadata.service
After=hcloud-dl-metadata.service
ConditionPathExists=/etc/systemd/network/default.network
[Service]
Type=oneshot
DynamicUser=yes
ExecStart=/usr/local/bin/hcloud-network
StandardOutput=truncate:/etc/systemd/network/default.network
[Install]
WantedBy=multi-user.target