mirror of
https://github.com/systemd/systemd.git
synced 2025-03-08 08:58:27 +03:00
Merge pull request #28827 from gioele/docs-fix-network-online-example-unit
docs/NETWORK_ONLINE: Move `Type=`, `RemainAfterExit=` to `[Service]` + Use `until` instead of `while !`
This commit is contained in:
commit
59120e89d8
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user