supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: John Nielsen <knoglen@tele2.fr>
Subject: Re: /etc/runit/3 not executing correctly...
Date: Tue, 27 Jul 2004 18:23:25 +0200	[thread overview]
Message-ID: <200407271823.25092.knoglen@tele2.fr> (raw)
In-Reply-To: <20040727104400.7150.qmail@ebc4b750716d9e.315fe32.mid.smarden.org>

On Tuesday 27 July 2004 12:43, Gerrit Pape wrote:
> On Mon, Jul 26, 2004 at 08:06:49PM +0200, John Nielsen wrote:
> > On Monday 26 July 2004 18:18, Laurent Bercot wrote:
> > > > With this script the last number being printet is "6". After that, it
> > > > just gives me the normal "Unmounting any remaining file systems. Now
> > > > you can turn off the power", so it exits somewhere while executing
> > > > the first svwaitdown command.
> > >
> > >  If you can boot your system again without an fsck, it means that the
> > > other services have stopped properly - so your script finished
> > > correctly. I guess that it does finish, but the "echo" commands don't
> > > print anything on the screen because of some weird VC deallocation
> > > thing happening when the gettys die.
> >
> > I use reiserfs, so fsck wouldnt run anyway. :-) But it doesnt replay the
> > log when mounting which means it umounted properly. The last message i
> > get from runit (not from the script) is "unmounting any remaining
> > filesystems", so that would explain the clean mount.
>
> That message is not from runit, did you post your complete stage 3
> script, or only a top part of it?

Yes, I posted all of the script. I had cut it down as much as possible to 
troubleshoot.

I really dont know where that message somes from then? That textstring 
"Unmounting any remaining filesystems" doesnt exist in any of the existing 
boot scripts. I just doublechecked, and it isnt there. Where else could it 
come from? The kernel itself?

>
> > Allso, I tried to pipe all of the echo lines out to a file instead to see
> > if it was just a strange screen problem, but the output still stopped at
> > 6, so the execution of the scripts stops at the first svwaitdown line,
> > but runit itself doesnt stop the shutdown.
>
> Hmm.  If you have a getty service running on console 1, I suggest to
> disable this service, login on console 2, run `init 6`, then immediately
> logout from console 2, and switch to console 1.  Does this change
> anything?

Success!!!

Why can i see it from an inactive console and not from a logged in console? 
How could that be blocked?
When i shut down like this, all of the "echo * >> /test" lines i put into the 
3 script are updating the /test file correctly, meaning the script finishes 
this time. 

Does this tell you anything?

> If not, I would do the following:  login on console 2 only, no other
> login.  Take down all services but the getty-2 service manually, and
> make sure they're down.  Then reboot by running `init 6`, logout from
> console 2 and switch to console 1.
>
> BTW, what operating system are you using?

It is a linux distro build from scratch. We have removed the sysvinit package 
completely, so the halt and shutdown commands are taken from the util-linux 
package instead. Might there be issues with this? 

Regards,

John


  reply	other threads:[~2004-07-27 16:23 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-26 16:10 John Nielsen
2004-07-26 16:18 ` Laurent Bercot
2004-07-26 18:06   ` John Nielsen
2004-07-27 10:43     ` Gerrit Pape
2004-07-27 16:23       ` John Nielsen [this message]
2004-07-27 16:55         ` John Nielsen
2004-07-27 18:26           ` John Nielsen
2004-07-27 18:42             ` Charlie Brady
2004-07-28  8:25             ` Gerrit Pape
2004-07-28 17:03               ` John Nielsen

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=200407271823.25092.knoglen@tele2.fr \
    --to=knoglen@tele2.fr \
    /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).