This is a followup to this post. It seems there’s a more graceful option to reboot the server when there are problems.
These instructions are for debian
1. Add the following lines to /etc/sysctl.conf
1 2 |
kernel.panic = 60 kernel.panic_on_oops = 60 |
2. server:~# apt-get install watchdog
3. In /etc/watchdog.conf, uncomment the following:
1 2 |
file = /var/log/messages watchdog-device = /dev/watchdog |
[ You may want to play with some of the other settings, most
notibly ping. I didnt have luck with it, however. My server
constantly rebooted ]
4. server:~# /sbin/modprobe softdog
5. add the following to /etc/modules
1 |
softdog |
6. Reboot