Admin Spotting for Fun and Profit

reboot on kernel panic

February 11th, 2008 Posted in Linux

It’s quite inconvenient to have to drive all the way back to a datacenter to reboot a server which has had a kernel panic. In some places you can remotely reboot these systems via ip console or other means. For others, you may simply want to drop a line in /etc/sysctl.conf.

# Reboot after 1 minute of Panic
kernel.panic = 60

This little bit of code will allow your system to reboot after displaying the panic for 1 minute. Salt to taste for time, but remember that you can put your server into a loop with this if it panics on every boot.

Post a Comment