November 29, 2007

Reboot Linux box after a kernel panic

Automatically reboot your Linux system after a kernel panic by setting a simple sysctl parameter. Here's how to do it in seconds.

To reboot a Linux box automatically after a kernel panic all you need to do is customize the “kernel.panic” sysctl.

echo “kernel.panic=10” >> /etc/sysctl.conf
This example will cause a reboot after 10 seconds.