[Unit] Description=check net connectivity - reboot in case of error After=network-online.target [Service] Type=oneshot ExecStart=/usr/bin/reboot-if-no-net-connection