From 3078ece8c49a4ae32d38a01b9e56611db174d54c Mon Sep 17 00:00:00 2001 From: Gioele Barabucci Date: Mon, 14 Aug 2023 08:50:46 +0200 Subject: [PATCH] docs/NETWORK_ONLINE: Move `Type=`, `RemainAfterExit=` to `[Service]` `Type=` and `RemainAfterExit=` belong in `[Service]`, not `[Unit]`. Fixes #28826 --- docs/NETWORK_ONLINE.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/NETWORK_ONLINE.md b/docs/NETWORK_ONLINE.md index 4700ef5b15e..74e610b0d1f 100644 --- a/docs/NETWORK_ONLINE.md +++ b/docs/NETWORK_ONLINE.md @@ -252,10 +252,10 @@ established), the following simple service could be used: DefaultDependencies=no After=nss-lookup.target Before=network-online.target -Type=oneshot -RemainAfterExit=yes [Service] +Type=oneshot +RemainAfterExit=yes ExecStart=sh -c 'while ! ping -c 1 example.com; do sleep 1; done' [Install] -- 2.47.3