[Unit] DefaultDependencies=no After=nss-lookup.target Before=network-online.target [Service] Type=oneshot RemainAfterExit=yes ExecStart=sh -c 'until ping -c 1 192.168.1.10; do sleep 0.5; done' [Install] WantedBy=network-online.target