mirror of
https://git.vectorsigma.ru/public/k3s.git
synced 2026-07-28 21:29:24 +00:00
[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: Adam Farden <adam@farden.cz>
This commit is contained in:
@@ -643,6 +643,7 @@ create_systemd_service_file() {
|
||||
[Unit]
|
||||
Description=Lightweight Kubernetes
|
||||
Documentation=https://k3s.io
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
Description=Lightweight Kubernetes
|
||||
Documentation=https://k3s.io
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
|
||||
@@ -648,6 +648,7 @@ create_systemd_service_file() {
|
||||
[Unit]
|
||||
Description=Lightweight Kubernetes
|
||||
Documentation=https://k3s.io
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
Conflicts=${conflicts}
|
||||
|
||||
Reference in New Issue
Block a user