summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorGioele Barabucci <gioele@svario.it>2023-08-14 08:53:16 +0200
committerGioele Barabucci <gioele@svario.it>2023-08-14 09:15:31 +0200
commit4a899c5a239eb50df3f596af4ff145f4a2d33f23 (patch)
treed2e7240148121f90a80ff3c44995608ca234c94e /docs
parentdocs/NETWORK_ONLINE: Move `Type=`, `RemainAfterExit=` to `[Service]` (diff)
downloadsystemd-4a899c5a239eb50df3f596af4ff145f4a2d33f23.tar.xz
systemd-4a899c5a239eb50df3f596af4ff145f4a2d33f23.zip
docs/NETWORK_ONLINE: Use `until` instead of `while !`
`until` is the standard POSIX shell builtin to be used when waiting for a condition to appear.
Diffstat (limited to 'docs')
-rw-r--r--docs/NETWORK_ONLINE.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/NETWORK_ONLINE.md b/docs/NETWORK_ONLINE.md
index 74e610b0d1..b249eb4402 100644
--- a/docs/NETWORK_ONLINE.md
+++ b/docs/NETWORK_ONLINE.md
@@ -256,7 +256,7 @@ Before=network-online.target
[Service]
Type=oneshot
RemainAfterExit=yes
-ExecStart=sh -c 'while ! ping -c 1 example.com; do sleep 1; done'
+ExecStart=sh -c 'until ping -c 1 example.com; do sleep 1; done'
[Install]
WantedBy=network-online.target