Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I need to know: how do not automatically restart GNU/Linux after a critical system failure (kernel panic). For some reason the pc is rebooted, actually throws the error screen Reboot just moments before, but I can't to read it before you reboot. I tried using:

echo 0 > /proc/sys/kernel/panic

sysctl -p

and I find that the value is stored with

cat /proc/sys/kernel/panic

but still does not work, does anyone know another way to indicate that no restart linux after a failure?

share|improve this question

1 Answer 1

On NetBSD we add the following line to /etc/sysctl.conf to make it reboot automatically on kernel panic:

  • ddb.onpanic=0

Perhaps that setting is what you need on Linux (but with a different value to make it not reboot)? I don't know if it's the same though.

share|improve this answer

Your Answer

 
discard

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.