From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/660 Path: main.gmane.org!not-for-mail From: Thomas Schwinge Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: runit on debian sid success, and questions Date: Wed, 19 Jan 2005 22:09:07 +0100 Message-ID: <20050119210907.GA796@router.galaxy.loc> References: <20050118171303.A27683@recycle.lbl.gov> <20050118220806.A28130@recycle.lbl.gov> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1106168971 29080 80.91.229.6 (19 Jan 2005 21:09:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 19 Jan 2005 21:09:31 +0000 (UTC) Cc: supervision@list.skarnet.org Original-X-From: supervision-return-899-gcsg-supervision=m.gmane.org@list.skarnet.org Wed Jan 19 22:09:20 2005 Return-path: Original-Received: from antah.skarnet.org ([212.85.147.14]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1CrN4p-0008D3-00 for ; Wed, 19 Jan 2005 22:09:19 +0100 Original-Received: (qmail 10282 invoked by uid 76); 19 Jan 2005 21:09:40 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Archive: Original-Received: (qmail 10276 invoked from network); 19 Jan 2005 21:09:40 -0000 Original-To: Larry Doolittle Mail-Followup-To: Larry Doolittle , supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: <20050118220806.A28130@recycle.lbl.gov> User-Agent: Mutt/1.4.2.1i X-Provags-ID: kundenserver.de abuse@kundenserver.de auth:18743cba606aac87be6e1d1e24d810ea Xref: main.gmane.org gmane.comp.sysutils.supervision.general:660 X-Report-Spam: http://spam.gmane.org/gmane.comp.sysutils.supervision.general:660 On Tue, Jan 18, 2005 at 10:07:44PM -0800, Larry Doolittle wrote: > On Tue, Jan 18, 2005 at 05:13:03PM -0800, Larry Doolittle wrote: > > > > I ran into odd runit shutdown behavior on another machine, > > vanilla Pentium (Celeron) with Debian sarge. I don't have > > the exact message, but it said something like > > > > power down > > kernel panic, attempting to kill init! > > > > then the disks spun down, but the video kept going. > > It then needed me to reset or power down. Of course, this > > machine powered down normally with stock debian sarge init. > > OK, I lied. It powered down normally with Red Hat 7.3, but there > is a similar lack-of-power-down with stock debian sarge init. > Still, there is an extra wrinkle with ruinit. > > Transcript (by hand, I tried to avoid any errors): > > ...normal shutdown stuff... > - runit: power off > flushing ide devices: hda hdc > Power down. > Kernel panic: Attempted to kill init! > > > > #v+ [...] From: Gerrit Pape To: supervision@list.skarnet.org Subject: Re: Shutdown kernel panic [...] On Mon, Feb 02, 2004 at 09:27:17PM -0800, Anthony Gorecki wrote: > Using RunIt on kernel 2.6.1, I receive the following output at the end of > executing init 0: > > - - runit: leave stage: /etc/runit/3 > - - runit: sending KILL signal to all processes... > - - runit: power off... > Power down. > Kernel panic: Attempted to kill init! I've seen this too with older Linux kernels. I guess it depends on the kernel configuration. It shouldn't hurt much, at this time everything is ready for power off. [...] #v- #v+ [...] From: yoppo@jippii.fi To: supervision@list.skarnet.org Subject: about runit... [...] Hi! First I must say that I started using runit about month ago and I must=20 say I am pretty pleased with it. Now I think I found small bug in it.=20 When acpi is disabled (acpi=3Doff at lilo append) I got kernel panic at=20 end of the shutdown/reboot process: .... -runit: power off... Power down. Kernel panic: Attempted to kill init! Off course this actually doesn't matter much but I think it should cause=20 this when acpi disabled. [...] #v- > The only extra stuff here is the "Kernel panic: Attempted to kill init!" > message. Does sysv.init spin in an idle loop if the power down fails? At a _quick_ glance it doesn't seem to. sysvinit-2.85, halt.c #v+ [...] if (do_hddown) (void)hddown(); if (do_reboot) { init_reboot(BMAGIC_REBOOT); } else { /* * Turn on hard reboot, CTRL-ALT-DEL will reboot now */ init_reboot(BMAGIC_HARD); /* * Stop init; it is insensitive to the signals sent * by the kernel. */ kill(1, SIGTSTP); /* * Halt or poweroff. */ if (do_poweroff) init_reboot(BMAGIC_POWEROFF); /* * Fallthrough if failed. */ init_reboot(BMAGIC_HALT); } /* * If we return, we (c)ontinued from the kernel monitor. */ init_reboot(BMAGIC_SOFT); kill(1, SIGCONT); exit(0); } #v- Regards, Thomas