supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: Richard A Downing FBCS <richard@109bean.org.uk>
Subject: Re: runit-1.0.0 release
Date: Thu, 12 Feb 2004 17:41:20 +0000	[thread overview]
Message-ID: <20040212174120.26bcb697@rad1.109bean.org.uk> (raw)
In-Reply-To: <20040211204212.12241.qmail@771d3fc1654724.315fe32.mid.smarden.org>

On Wed, 11 Feb 2004 20:43:12 +0000
Gerrit Pape <pape@smarden.org> wrote:

> An exit code other than zero just causes a warning, stage 2 only is
> skipped if stage 1 has crashed, e.g. due to a broken binary.  I guess
> that this happened here:
>  http://article.gmane.org/gmane.comp.sysutils.supervision.general/295
>  http://thread.gmane.org/gmane.comp.sysutils.supervision.general/296
> 
> > If I exit -1, it just reports a warning and then enters stage 2 as
> > normal.  I want to be able to say 'things got too difficult in stage
> > 1' and get straight to stage 3 and an orderly shutdown.
> 
> It would be easy to change this in the runit.c source, but I'm curious
> why you need it.  What's the advantage of running stage 3 in this
> situation?, if stage 1 cannot recover, it can possibly reboot
> immediately.

Gerrit,

I have made progress and now run a standard shell in the recovery situation,
modelling my script on the openbsd example.  I would have liked to use sulogin,
which is more secure, but as I was planning not to install sysVinit, and
sulogin is part of that package, it's out for the moment, but see below.

Next problem.  You state above that the stage 1 script can reboot immediately. 
Well, the reboot script that your openbsd example uses is also a sysVinit
script.  If I call 'init 6' (or init 0) from within stage 1, I am, of
course sending a signal to runit!  Runit doesn't accept signals in stage 1!

Catch 22?

I'm beginning to think that I'm going to have to install SysVinit after all.
(I may need wall, halt, poweroff, reboot, shutdown, and sulogin, these are all
part of sysVinit)

Cheers,
Richard.

-- 
Richard A Downing FBCS http://www.109bean.org.uk/
Anyone sending unwanted advertising e-mail to this address will be
charged $25 for network traffic and computing time. By extracting my
address from this message or its header, you agree to these terms.


  reply	other threads:[~2004-02-12 17:41 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-10 15:35 Gerrit Pape
2004-02-11  8:35 ` Lukas Beeler
2004-02-11 17:37   ` Gerrit Pape
2004-02-11 19:23 ` Richard A Downing FBCS
2004-02-11 20:43   ` Gerrit Pape
2004-02-12 17:41     ` Richard A Downing FBCS [this message]
2004-02-12 20:46       ` Gerrit Pape
2004-02-12 21:15         ` Alejandro Mery
2004-02-13  2:13           ` nullmailer & fghack? (was Re: runit-1.0.0 release) Charlie Brady
2004-02-13  2:32             ` Alejandro Mery
2004-02-13 15:29               ` Charlie Brady
2004-02-13 16:32                 ` Alejandro Mery
2004-02-14 12:22           ` runit-1.0.0 release Gerrit Pape
2004-02-16 22:04             ` Alejandro Mery
2004-02-19 16:15               ` Gerrit Pape
2004-02-19 21:03                 ` Stefan Karrmann
2004-02-11 22:05   ` Thomas Schwinge
2004-03-08 19:22 ` runit-1.0.1 release Gerrit Pape
2004-03-30 19:08   ` runit-1.0.2 release Gerrit Pape
2004-06-28  7:55     ` runit-1.0.3 release Gerrit Pape
2004-08-02 16:43       ` runit-1.0.4 release Gerrit Pape
2004-09-22 20:44         ` runit-1.0.5 release 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=20040212174120.26bcb697@rad1.109bean.org.uk \
    --to=richard@109bean.org.uk \
    /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).