mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Prakhar Krishna" <prakhar2@gmail.com>
To: "Bart Van Assche" <bart.vanassche@gmail.com>
Cc: "Jan Engelhardt" <jengelh@computergmbh.de>, linux-kernel@vger.kernel.org
Subject: Re: How to compile kernel so it automatically reboots upon a crash instead of generating stack trace and then hang.
Date: Thu, 13 Mar 2008 07:07:26 -0500	[thread overview]
Message-ID: <4f2ee0160803130507n1d07e07iedf8ab9bc5778455@mail.gmail.com> (raw)
In-Reply-To: <e2e108260803120340u6e42b1d1hd3fc51bb92f21830@mail.gmail.com>

thanks everyone for the information.

can it be presumed that boot option panic=<x> would always reboot the machine
upon a crash/null pointer dereference if it is not stuck in a
deadlock? also, is there any
place in kernel where, if desired, the panic time can be hardcoded and compiled
for my specific test kernel.

intention is to look for a way to make a regular PC with linux OS
behave close to a
customized hardware appliance through software only mechanism. that
way it becomes
much easier to send just software to the users, which they can load on any
PC without requiring them to have additional hardware inserted into it.

please CC me on replies.

thanks
PK

On Wed, Mar 12, 2008 at 5:40 AM, Bart Van Assche
<bart.vanassche@gmail.com> wrote:
> On Wed, Mar 12, 2008 at 6:04 AM, Jan Engelhardt <jengelh@computergmbh.de> wrote:
> >
> >  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.
>
> The best solution in this case is a hardware watchdog. Hardware
> watchdogs are present on some server motherboards, most embedded x86
> CPU boards and also in PowerPC CPU's. The Linux kernel supports some
> hardware watchdogs, see also Device Drivers/Watchdog Timer Support in
> the Linux kernel config.
>
> The nmi_watchdog=<timeout> parameter might be interesting too. See
> also Documentation/nmi_watchdog.txt.
>
> Bart.
>

  reply	other threads:[~2008-03-13 12:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-12  4:52 Prakhar Krishna
2008-03-12  5:04 ` Jan Engelhardt
2008-03-12 10:40   ` Bart Van Assche
2008-03-13 12:07     ` Prakhar Krishna [this message]
2008-03-12  8:53 ` Sebastien Dugue

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4f2ee0160803130507n1d07e07iedf8ab9bc5778455@mail.gmail.com \
    --to=prakhar2@gmail.com \
    --cc=bart.vanassche@gmail.com \
    --cc=jengelh@computergmbh.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®