diff --git a/docs/NETWORK_ONLINE.md b/docs/NETWORK_ONLINE.md index 4700ef5b15..b249eb4402 100644 --- a/docs/NETWORK_ONLINE.md +++ b/docs/NETWORK_ONLINE.md @@ -252,11 +252,11 @@ 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' +Type=oneshot +RemainAfterExit=yes +ExecStart=sh -c 'until ping -c 1 example.com; do sleep 1; done' [Install] WantedBy=network-online.target