Commit a06ed9ef authored by Kristian Klausen's avatar Kristian Klausen 🎉
Browse files

networking: Make hcloud-init.service more reliable

Fix #371
parent 5a65b590
[Unit]
Description=Apply configuration from HCloud metadata
DefaultDependencies=no
ConditionVirtualization=kvm
After=systemd-networkd.service
Before=network.target multi-user.target shutdown.target
Conflicts=shutdown.target
Wants=systemd-networkd.service
After=systemd-networkd-wait-online.service
Before=network-online.target
Wants=network-online.target
ConditionPathExists=!/etc/systemd/network/10-dhcp-ethernet.network.d/hcloud.conf
[Service]
ExecStart=/usr/local/bin/hcloud-init
Type=oneshot
RemainAfterExit=yes
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=multi-user.target
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment