This utility configures a Linux system to automatically reboot when it loses internet connectivity. It works by periodically pinging reliable public DNS servers. If they are unreachable, a reboot is triggered.
Automated Installation
To install, run the following command in your terminal. This will download and execute the installation script with sudo privileges.
Using curl:
curl -sL https://random.clusterlabs.dev/scripts/network-check/install.sh | sudo bash
Using wget:
wget -qO- https://random.clusterlabs.dev/scripts/network-check/install.sh | sudo bash
Installation Script Content:
Automated Uninstallation
To remove the configuration, run the corresponding command below. This will download and execute the uninstallation script with sudo.
Using curl:
curl -sL https://random.clusterlabs.dev/scripts/network-check/uninstall.sh | sudo bash
Using wget:
wget -qO- https://random.clusterlabs.dev/scripts/network-check/uninstall.sh | sudo bash
Uninstallation Script Content:
Monitoring and Verification
You can check that the timer is running and view logs to ensure everything is working as expected.
Check Timer Status
sudo systemctl status network-reboot.timer
View Logs
sudo journalctl -u network-reboot.service -f