LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-28-2003, 03:56 PM   #1
kernelpanicguy
LQ Newbie
 
Registered: Jul 2003
Posts: 11

Rep: Reputation: 0
kernel automatically restart if there is a panic


I've never actually seen a kernel panic, but I do understand that some sort of message is printed on the screen. What I am wondering is if there is a way to have the function that displays the 'kernel panic' message, call the kernel/BIOS function that does a hard reboot of the computer?

The kernel has a function that tells the BIOS to restart, so that function should still be callable from the kernel panic function, right.

Is there an existing patch for doing this?
 
Old 07-28-2003, 04:06 PM   #2
cnjohnson
Member
 
Registered: Nov 2002
Location: Nashville
Distribution: FreeBSD, Linux, OS-X
Posts: 544

Rep: Reputation: 30
Do you think that would be a good idea? How would you intervene to boot from a rescue floppy, or change the command line that lilo or grub feeds to the kernel if you could not stop the cycle?

Cheers--
Charles
 
Old 07-28-2003, 07:08 PM   #3
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,385

Rep: Reputation: 581Reputation: 581Reputation: 581Reputation: 581Reputation: 581Reputation: 581
Once I stupidly set my initdefault to 6, which means that the first thing that the kernel does after booting is reboot. I watched my machine boot up, shutdown, boot up, shutdown... in a complete panic for several minutes before I powered off and then booted a rescue CD to begin diagnosing the problem.

I think that a kernel panic reboot would create the same sort of loop.
 
Old 07-29-2003, 09:06 PM   #4
kernelpanicguy
LQ Newbie
 
Registered: Jul 2003
Posts: 11

Original Poster
Rep: Reputation: 0
A loop would be caused if the kernel panics when it boots up.
I'd be interested in using such a kernel to run servers that I would like to automatically restart if there is a kernel panic once they are running, in order to increase reliability, so that they can be run for a very long time without maintenance from a technician.

I doubt these systems would have a kernel panic while they are booting up, but the solution to that problem would be to a have a special system call that must be called in order to enable this special patch (not restart, but enable restarting in the event of a kernel panic), with this new syscall only being called once the system is up and running and therefore doesn't have memory problems or other issues that can cause a kernel panic while the kernel is loading.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
My computer restart automatically from time to time ?? pleasehelpme Linux - Newbie 2 07-04-2005 04:29 PM
Automatically Restart Service tulip4heaven Linux - General 1 04-23-2005 02:11 AM
Way to automatically restart a program? AlexV Linux - General 1 04-13-2005 05:23 PM
Automatically Restart Server?? flamesrock Linux - Software 4 08-07-2004 09:25 PM
Kernel panic puts me in a panic theeeg Linux - Software 2 07-31-2004 04:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration