1 2 3 4 5 6 7
[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