Thursday, January 24, 2008

Linux... Recover automatically from panic

Normally when a linux system panics, it halts, and one needs to manually press the power button to reboot the system, and this irks at times... specially when you are sitting far from the system. So the solution is to do the following-

edit the /etc/sysctl.conf file, and put following line -
kernel.panic = 5

This will force the system to reboot after 5 seconds after it dumps the crash, and you are saved from touching the system :)

0 comments: