This guide outlines the steps to configure and test the sp5100_tco
watchdog on your system.
Step 1: Remove the Watchdog Module from Modprobe Blacklists
Search for the
sp5100_tco
entry in the modprobe configuration:Code Block grep -r sp5100_tco /lib/modprobe.d/
For each returned result, open the file and comment out lines containing "blacklist sp5100_tco".
Step 2: Create a New Modprobe Entry
Enter the following command to add a new configuration for sp5100_tco
:
Code Block |
---|
echo "options sp5100_tco heartbeat=30 nowayout=1" > /etc/modprobe.d/sp5100_tco.conf |
Step 3: Install the Watchdog Package
Use the package manager to install the watchdog package:
Code Block |
---|
apt install -y watchdog |
Step 4: Update the Watchdog Configuration
Open the watchdog configuration file:
Code Block nano /etc/watchdog.conf
Locate and uncomment the line:
Code Block #watchdog-device = /dev/watchdog
Find the line:
Code Block #watchdog-timeout = 60
Uncomment it and change its value to
30
:Code Block watchdog-timeout = 30
Step 5: Reboot the System
To apply the changes, reboot your system:
Code Block |
---|
reboot |
Testing the Configuration
To test if the watchdog is working correctly, you can intentionally trigger a kernel crash:
...