From: Thomas Schwinge <schwinge-lists-skarnet.org-supervision@nic-nac-project.de>
Cc: supervision@list.skarnet.org
Subject: Re: runit on debian sid success, and questions
Date: Wed, 19 Jan 2005 22:09:07 +0100 [thread overview]
Message-ID: <20050119210907.GA796@router.galaxy.loc> (raw)
In-Reply-To: <20050118220806.A28130@recycle.lbl.gov>
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!
>
> <whine as disk spins down>
> <caps log & scroll lock LEDs start blinking with one second period>
> <power stays on, screen is still there, and reacts to ALT-Fn>
#v+
[...]
From: Gerrit Pape <pape@smarden.org>
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
next prev parent reply other threads:[~2005-01-19 21:09 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-19 1:13 Larry Doolittle
2005-01-19 3:59 ` Dean Hall
2005-01-19 10:03 ` Milan P. Stanic
2005-01-19 6:08 ` Larry Doolittle
2005-01-19 21:09 ` Thomas Schwinge [this message]
2005-01-19 6:39 ` Dean Hall
2005-01-23 12:23 ` Gerrit Pape
-- strict thread matches above, loose matches on Subject: below --
2005-01-19 6:12 Larry Doolittle
2005-01-19 21:07 ` Thomas Schwinge
2005-01-19 21:53 ` Larry Doolittle
2005-01-20 22:55 ` Vincent Danen
2005-01-14 20:08 Larry Doolittle
2005-01-15 16:07 ` Gerrit Pape
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050119210907.GA796@router.galaxy.loc \
--to=schwinge-lists-skarnet.org-supervision@nic-nac-project.de \
--cc=supervision@list.skarnet.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).