homelab/packer/files/archlinux/root/etc/systemd/system/hcloud-network.service

15 lines
354 B
SYSTEMD
Raw Normal View History

2024-01-28 08:31:39 +00:00
[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