supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: Gerrit Pape <pape@smarden.org>
Subject: Re: runsv and process groups
Date: Sun, 29 Aug 2004 09:39:22 +0000	[thread overview]
Message-ID: <20040829093924.23553.qmail@691f36bc3ec803.315fe32.mid.smarden.org> (raw)
In-Reply-To: <m3zn4hwr9z.fsf@multivac.cwru.edu>

On Thu, Aug 26, 2004 at 04:57:54PM -0400, Paul Jarc wrote:
> Gerrit Pape <pape@smarden.org> wrote:
> > Once setsid() is called there's no way back.
> But there is after setpgid().
Hm, I'm not yet sure about all the implications when changing the
default behavior.

> > Hm, I'm not sure yet.  What do you think about runsvdir running runsv in
> > a new process group, and not runsv the run script?
> 
> It depends what kinds of arrangements you want to make possible.

Primarily I want to address Charlie's concern.  It's true that a buggy
program that kills the process group it didn't create kills the stage 2
runsvdir process, and so causes runit to enter stage 3.  But I think
it's also true that this may be used as a feature as Clement noted; the
runsv and runsvdir programs also can be used independently, and in user
space.  And I don't want to make major changes to the default behavior
of the runit programs in versions 1.0.x.

Having runsvdir create a process group for each runsv process could be
done through a command line option and switched on optionally, it's not
that easy with runsv.  This doesn't solve Dan's trouble with the getty
service though, some getties would still need to be run with chpst -P;
this should be documented.

Thanks for your input, Gerrit.


  reply	other threads:[~2004-08-29  9:39 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-19 17:30 getty trouble Dan Melomedman
2004-08-20  7:19 ` Gerrit Pape
2004-08-20 16:45   ` Dan Melomedman
2004-08-23  0:04   ` runsv and process groups (was Re: getty trouble) Charlie Brady
2004-08-23 13:26     ` runsv and process groups Clemens Fischer
2004-08-23 21:29       ` Charlie Brady
2004-08-26 16:27         ` Clemens Fischer
2004-08-26 17:05           ` Charlie Brady
2004-08-26 20:48             ` Gerrit Pape
2004-08-26 20:57               ` Paul Jarc
2004-08-29  9:39                 ` Gerrit Pape [this message]
2004-08-27  1:06               ` Charlie Brady
2004-09-11  9:58                 ` 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=20040829093924.23553.qmail@691f36bc3ec803.315fe32.mid.smarden.org \
    --to=pape@smarden.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).