diff --git a/eth-monitor.service b/eth-monitor.service new file mode 100644 index 0000000..77ccb02 --- /dev/null +++ b/eth-monitor.service @@ -0,0 +1,15 @@ +/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 \ No newline at end of file