diff options
author | Geert Lorang <geert@lorang.be> | 2023-02-08 17:10:28 +0100 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2023-02-08 16:53:53 +0000 |
commit | d5e3d3465cf9519b83427b52b462c02d62cc323b (patch) | |
tree | 605381d8167fc504a66c23a8e3cd78a7c1e591b0 /docs | |
parent | 9779079b5354ac66809a1b6e593ef2a2a3f75117 (diff) | |
download | systemd-d5e3d3465cf9519b83427b52b462c02d62cc323b.tar.gz |
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.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/NETWORK_ONLINE.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/NETWORK_ONLINE.md b/docs/NETWORK_ONLINE.md index 084f0d1381..aec27ed5a4 100644 --- a/docs/NETWORK_ONLINE.md +++ b/docs/NETWORK_ONLINE.md @@ -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' |