diff options
author | Gioele Barabucci <gioele@svario.it> | 2023-08-14 08:53:16 +0200 |
---|---|---|
committer | Gioele Barabucci <gioele@svario.it> | 2023-08-14 09:15:31 +0200 |
commit | 4a899c5a239eb50df3f596af4ff145f4a2d33f23 (patch) | |
tree | d2e7240148121f90a80ff3c44995608ca234c94e /docs | |
parent | docs/NETWORK_ONLINE: Move `Type=`, `RemainAfterExit=` to `[Service]` (diff) | |
download | systemd-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.md | 2 |
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 |