about summary refs log tree commit diff
path: root/data
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2020-05-08 21:41:46 +0200
committerMichael Biebl <biebl@debian.org>2020-05-08 21:41:46 +0200
commit14a437f08bfacbdbe3ed3d4e36dcf8a199df8e9e (patch)
tree036108c3f080f94e794f52be66cc2bab2158486e /data
parent9df39b936fcb2f3d27ff7e653e645c16900807e3 (diff)
parentd460892bbfece74fb6d3cd846bf6ef548290be41 (diff)
Update upstream source from tag 'upstream/1.24.0'
Update to upstream version '1.24.0'
with Debian dir 36f1778d11d8b638b63bd623816627ac76cb75ee
Diffstat (limited to 'data')
-rw-r--r--data/NetworkManager-wait-online.service.in20
1 files changed, 19 insertions, 1 deletions
diff --git a/data/NetworkManager-wait-online.service.in b/data/NetworkManager-wait-online.service.in
index 89632468..26a8f253 100644
--- a/data/NetworkManager-wait-online.service.in
+++ b/data/NetworkManager-wait-online.service.in
@@ -6,9 +6,27 @@ After=NetworkManager.service
 Before=network-online.target
 
 [Service]
+# `nm-online -s` waits until the point when NetworkManager logs
+# "startup complete". That is when startup actions are settled and
+# devices and profiles reached a conclusive activated or deactivated
+# state. It depends on which profiles are configured to autoconnect and
+# also depends on profile settings like ipv4.may-fail/ipv6.may-fail,
+# which affect when a profile is considered fully activated.
+# Check NetworkManager logs to find out why wait-online takes a certain
+# time.
+
 Type=oneshot
-ExecStart=@bindir@/nm-online -s -q --timeout=30
+ExecStart=@bindir@/nm-online -s -q
 RemainAfterExit=yes
 
+# Set $NM_ONLINE_TIMEOUT variable for timeout in seconds.
+# Edit with `systemctl edit NetworkManager-wait-online`.
+#
+# Note, this timeout should commonly not be reached. If your boot
+# gets delayed too long, then the solution is usually not to decrease
+# the timeout, but to fix your setup so that the connected state
+# gets reached earlier.
+Environment=NM_ONLINE_TIMEOUT=30
+
 [Install]
 WantedBy=network-online.target