Files
ascoetpi/automated_shutdown/eth-monitor.service

15 lines
268 B
Desktop File

/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