From d5e3d3465cf9519b83427b52b462c02d62cc323b Mon Sep 17 00:00:00 2001 From: Geert Lorang Date: Feb 08 2023 16:53:53 +0000 Subject: 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. --- diff --git a/docs/NETWORK_ONLINE.md b/docs/NETWORK_ONLINE.md index 084f0d1..aec27ed 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'