bootparam(7) mentiones both 'panic=N' on the command line and /proc/sys/kernel/panic. I never used this myself. -- Didi
On Sat, May 01, 2004 at 12:56:47PM +0300, Shachar Shemesh wrote: > Hi all, > > Does anyone know of a mechanism that will allow me to have a kernel > automatically reboot on panic? > > When remote upgrading a kernel, the most common problems have to do with > either initrd creation or some other form of not finding the root > partition. Once the root partition is mounted, it is very rare to have > any problems after that point. > > Now, LILO has this wonderful mechanism, where you can have a certain > kernel for your next boot, and a different kernel for all subsequent > reboots. This is great as you can do two commands before the crucial reboot: > lilo -D failsafe > lilo -R newkernel > > and the new kernel will boot once, and the failsafe kernel will boot the > rest of the times. This still leaves one problem - how do you recover if > the new kernel did not start properly? Today, I have to call the > co-location ISP, convince them that the machine is indeed down, and ask > them to reboot it. I then try to fix the problem, and reboot again, > which may cause the machine to hang again, and so on and so forth. > > What I'm looking for is a kernel command option (I can put it in > lilo.conf) that tells it "if you panic, just reboot". This will save me > the phone call in the middle, and yeild much more robust behaviour. > > Anyone know of such an option? > > Shachar > > -- > Shachar Shemesh > Lingnu Open Source Consulting > http://www.lingnu.com/ > > > ================================================================= > To unsubscribe, send mail to [EMAIL PROTECTED] with > the word "unsubscribe" in the message body, e.g., run the command > echo unsubscribe | mail [EMAIL PROTECTED] > > > +++++++++++++++++++++++++++++++++++++++++++ > This Mail Was Scanned By Mail-seCure System > at the Tel-Aviv University CC. ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]