mirror of
https://github.com/systemd/systemd.git
synced 2024-12-31 21:18:09 +03:00
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.
This commit is contained in:
parent
3078ece8c4
commit
4a899c5a23
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user