/etc/systemd/system/eth-monitor.service [Unit] Description=Ethernet Connection Monitor After=network.target [Service] Type=simple ExecStart=/usr/local/bin/check_eth_connection.sh Restart=on-failure RestartSec=60 TimeoutStopSec=5 [Install] WantedBy=multi-user.target