1
0
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:
Daan De Meyer 2023-08-14 10:08:20 +02:00 committed by GitHub
commit 59120e89d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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