]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
docs/NETWORK_ONLINE: Move `Type=`, `RemainAfterExit=` to `[Service]`
authorGioele Barabucci <gioele@svario.it>
Mon, 14 Aug 2023 06:50:46 +0000 (08:50 +0200)
committerGioele Barabucci <gioele@svario.it>
Mon, 14 Aug 2023 07:15:21 +0000 (09:15 +0200)
`Type=` and `RemainAfterExit=` belong in `[Service]`, not `[Unit]`.

Fixes #28826

docs/NETWORK_ONLINE.md

index 4700ef5b15ed604e687e0cd597ed75303b73b177..74e610b0d1fb4edc08b077738e885d230097f72a 100644 (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]