Sat, 31 Dec 2005

Reboot after kernel panic in Linux

Sometimes it’s better to reboot after a kernel panic instead of dumping to console and waiting for the admin to go to the colocation facility and reboot the machine. The Linux sysctl kernel.panic lets you specify the number of seconds after a panic until a hard reboot. For example, to reboot 5 seconds after a panic, put this line into /etc/sysctl.conf:

kernel.panic = 5

To load your change, run sysctl -p as root.

[/config/linux-kernel] permanent link