From f4e91c3b69f8ef0366d0a3157fa01d74d1b7d076 Mon Sep 17 00:00:00 2001 From: xavye Date: Wed, 14 Jan 2026 12:52:36 +0000 Subject: [PATCH] Ajouter eth-monitor.service --- eth-monitor.service | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 eth-monitor.service 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