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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-28-2003, 03:56 PM
|
#1
|
LQ Newbie
Registered: Jul 2003
Posts: 11
Rep:
|
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?
|
|
|
07-28-2003, 04:06 PM
|
#2
|
Member
Registered: Nov 2002
Location: Nashville
Distribution: FreeBSD, Linux, OS-X
Posts: 544
Rep:
|
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
|
|
|
07-28-2003, 07:08 PM
|
#3
|
LQ Guru
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,385
|
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.
|
|
|
07-29-2003, 09:06 PM
|
#4
|
LQ Newbie
Registered: Jul 2003
Posts: 11
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 09:01 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|