docs/NETWORK_ONLINE: Move Type=, RemainAfterExit= to [Service]

`Type=` and `RemainAfterExit=` belong in `[Service]`, not `[Unit]`.

Fixes #28826
This commit is contained in:
Gioele Barabucci
2023-08-14 08:50:46 +02:00
parent 3912d49d0d
commit 3078ece8c4

View File

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