Commit f58f89d3 authored by Adam Farden's avatar Adam Farden Committed by Brad Davidson

[systemd] really wait for network to come online (#1665)

Wants= is required to actually set the dependency on network-online.service After= is required or k3s.service will be started at the same time as network-online.service In network environments with slow DHCP, both are required to ensure valid network configuration for k3s Signed-off-by: 's avatarAdam Farden <adam@farden.cz>
parent 052d283a
...@@ -643,6 +643,7 @@ create_systemd_service_file() { ...@@ -643,6 +643,7 @@ create_systemd_service_file() {
[Unit] [Unit]
Description=Lightweight Kubernetes Description=Lightweight Kubernetes
Documentation=https://k3s.io Documentation=https://k3s.io
After=network-online.target
Wants=network-online.target Wants=network-online.target
After=network-online.target After=network-online.target
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
Description=Lightweight Kubernetes Description=Lightweight Kubernetes
Documentation=https://k3s.io Documentation=https://k3s.io
After=network-online.target After=network-online.target
Wants=network-online.target
[Service] [Service]
Type=notify Type=notify
......
...@@ -648,6 +648,7 @@ create_systemd_service_file() { ...@@ -648,6 +648,7 @@ create_systemd_service_file() {
[Unit] [Unit]
Description=Lightweight Kubernetes Description=Lightweight Kubernetes
Documentation=https://k3s.io Documentation=https://k3s.io
After=network-online.target
Wants=network-online.target Wants=network-online.target
After=network-online.target After=network-online.target
Conflicts=${conflicts} Conflicts=${conflicts}
......
Markdown is supported
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