Reboot on kernel panic

Anyone who runs Linux servers remotely knows that you can do almost ANYTHING from the CLI. One of the more tricky things to do is install a new kernel. Too often, if there is an error in the new kernel build the machine will kernel panic and lock up.

The only way around that is to manually power cycle the machine – unless you pass a panic parameter to the kernel on boot up.

Just add a line like this to your lilo config

append=”panic=15″

After 15 seconds the machine will reboot. If lilo was run with the -R parameter, the server will come back up with the old kernel.

Related posts:

  1. Lilo -R – updating kernel on remote machine
  2. Kernel Newbies
  3. Configure the linux to write corefiles as core.pid?
  4. Why is Windows so dumb

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>