Re: How to compile kernel so it automatically reboots upon a crashinstead of generating stack trace and then hang.

From: Jan Engelhardt
Date: Wed Mar 12 2008 - 01:04:25 EST



On Mar 11 2008 23:52, Prakhar Krishna wrote:
>
>[I did search the mailing lists archives and the Web but did not find an answer,
> apololgies if this is duplicate question]
>
>i need my linux box to automatically reboot if it ever runs into a
>kernel panic/crash etc.

panic=<timeout> boot parameter, as per
Documentation/kernel-parameters.txt.

>For my production evvironment, it is not desired that kernel generate the stack
>trace and then wait there. We want it to reboot and comeback up again.

Kernel panic is not the only problem one can run into; there are
also deadlocks-after-oops situations, in which case some sort of
watchdog is best for triggering reboots.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/