From: Charlie Brady <charlieb-smarden-supervision@budge.apana.org.au>
Cc: supervision@list.skarnet.org
Subject: runsv and process groups (was Re: getty trouble)
Date: Sun, 22 Aug 2004 20:04:14 -0400 (EDT) [thread overview]
Message-ID: <Pine.LNX.4.44.0408221945520.5131-100000@e-smith.charlieb.ott.istop.com> (raw)
In-Reply-To: <20040820071950.11549.qmail@7e729926274f71.315fe32.mid.smarden.org>
On Fri, 20 Aug 2004, Gerrit Pape wrote:
> On Thu, Aug 19, 2004 at 01:30:46PM -0400, Dan Melomedman wrote:
> > Hello. Thanks for runit, I love it.
> >
> > 'getty' runs fine. 'mingetty' refuses to run though, because it gets
> > EPERM on a tty open. Any ideas? mingetty used to run fine under SysV
> > init. This is RH 6.2, with the old getty and mingetty. Thanks.
>
> Most probably it's because runsv doesn't automatically make a service
> run script a process group leader.
Gerrit, have you ever given any thought to runsv doing just that? As is, a
runit managed system is more vulnerable than it should be to bugs in
supervised daemons. I've had such a buggy client bring down all of runit
stage 2. I know this is something which Dan deals with in his daemontools
FAQ, but I think he gives a non-answer:
How can I supervise a daemon that kills its process group? When pppd
receives a TERM signal, it destroys its entire process group, including
svscan and all my other daemons.
Answer: The best answer is to fix the daemon. It is inexcusable for a
program to send signals to a process group that it didn't create.
His answer is congruent to "programs should not have bugs".
Can you think of any reason why runsv *shouldn't* make the supervised
process a process group leader? It'd take very little code ...
---
Charlie
next prev parent reply other threads:[~2004-08-23 0:04 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 ` Charlie Brady [this message]
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
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=Pine.LNX.4.44.0408221945520.5131-100000@e-smith.charlieb.ott.istop.com \
--to=charlieb-smarden-supervision@budge.apana.org.au \
--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).