Actualiser automated_shutdown/eth-monitor.service
This commit is contained in:
15
automated_shutdown/eth-monitor.service
Normal file
15
automated_shutdown/eth-monitor.service
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user