From d5e3d3465cf9519b83427b52b462c02d62cc323b Mon Sep 17 00:00:00 2001 From: Geert Lorang Date: Wed, 8 Feb 2023 17:10:28 +0100 Subject: [PATCH] docs/NETWORK_ONLINE: fix example Type=oneshot is necessary for systemd to actually wait for the service to return. With RemainAfterExit=yes it won't be started again. Fixes #26342. --- docs/NETWORK_ONLINE.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/NETWORK_ONLINE.md b/docs/NETWORK_ONLINE.md index 084f0d13819..aec27ed5a44 100644 --- a/docs/NETWORK_ONLINE.md +++ b/docs/NETWORK_ONLINE.md @@ -252,6 +252,8 @@ established), the following simple service could be used: DefaultDependencies=no After=nss-lookup.target Before=network-online.target +Type=oneshot +RemainAfterExit=yes [Service] ExecStart=sh -c 'while ! ping -c 1 example.com; do sleep 1; done' -- 2.47.3