mirror of
https://github.com/systemd/systemd.git
synced 2025-09-10 22:52:49 +02:00
docs/NETWORK_ONLINE: Move Type=, RemainAfterExit= to [Service]
`Type=` and `RemainAfterExit=` belong in `[Service]`, not `[Unit]`. Fixes #28826
This commit is contained in:
@@ -252,10 +252,10 @@ established), the following simple service could be used:
|
||||
DefaultDependencies=no
|
||||
After=nss-lookup.target
|
||||
Before=network-online.target
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=sh -c 'while ! ping -c 1 example.com; do sleep 1; done'
|
||||
|
||||
[Install]
|
||||
|
||||
Reference in New Issue
Block a user