Automatic Reboot after Kernel Panic (Ubuntu)

I don’t know why Ubuntu server doesn’t have this enabled by default, but you should add the following to /etc/sysctrl.conf:

kernel.panic=60

This will automatically reboot your server 60 seconds after a kernel panic.

2 Responses to “Automatic Reboot after Kernel Panic (Ubuntu)”


  • My Ubuntu Server never kernel panics. True I hardly use it because I feel that Ubuntu belongs on my desktop, not the servertop, but when I did use it it never Kernel Panicked.

    In fact my desktops/laptop don’t kernel panic either. I forgot it was even possible. That’s pretty nice.

  • i used to get some mysterious kernel panics on an older version of ubuntu. they were pretty infrequent though, so i didn’t care much, as long as the server came back up on its own. but then i upgraded to the next version of ubuntu, and all those problems went away.

Leave a Reply