Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am currently running Ubuntu 9.04, Jaunty, and have had some issues that caused a few kernel panics to crop up. These panics cause the system to dump a bunch of information to the terminal and hang.

More often than not, these happen while I am away from the system. This means that the system sits idle until I come to the terminal, see that it has had a kernel panic, and restart the system.

Is there a way to automate the restart with Linux? I know that with a Windows BSOD, there is an option to automatically reboot after the core dump has occurred. Is there a similar option for Linux?

share|improve this question
up vote 10 down vote accepted

Add the following to /etc/sysctl.conf:

kernel.panic = 20

It will reboot after a panic after 20 seconds

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.