mirror of
https://github.com/systemd/systemd.git
synced 2025-02-25 21:57:32 +03:00
docs/NETWORK_ONLINE: fix example
Type=oneshot is necessary for systemd to actually wait for the service to return. With RemainAfterExit=yes it won't be started again. Fixes #26342.
This commit is contained in:
parent
9779079b53
commit
d5e3d3465c
@ -252,6 +252,8 @@ 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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user