From: Charlie Brady <charlieb-supervision@budge.apana.org.au>
Cc: supervision@list.skarnet.org
Subject: Re: runit under sysvinit - coping when runsvdir dies
Date: Tue, 15 Nov 2005 22:50:39 -0500 (EST) [thread overview]
Message-ID: <Pine.LNX.4.61.0511152202500.21197@e-smith.charlieb.ott.istop.com> (raw)
In-Reply-To: <dlajh8$eqj$1@sea.gmane.org>
On Mon, 14 Nov 2005, Charles Duffy wrote:
> I recently had a situation on a fielded server where runsvdir (from runit
> 1.2.3) apparently died; in any event, all the runsv processes which would
> typically be directly under runsvdir were instead inherited by sysvinit and
> running there. However, since runsvdir was respawned by sysvinit, a great
> deal of CPU time was being spent continuously trying to start new runsv
> instances under the fresh runsvdir -- attempts which failed because there
> were still runsv instances alive and holding open the relevant locks. I
> killed the old runsv instances with "runsvctrl e", and fresh children of the
> new runsvdir took their place -- but there are still some questions raised:
>
> - How could this have happened? The system's message log doesn't show the OOM
> killer taking down runsvdir or any segfault on the part of the same.
If any of the run scripts (or programs exec'd by the run scripts) did not
create a new process group, but sent a kill or term signal to its own
process group (pppd used to do this in the past, and maybe still does),
then I think it could have brought down the whole pack of cards. In order
to prevent this, I think that each runsv should start a new process group
for the run script to execute in.
Note that for any service with a 'down' file, runsv crashing could mean
that the service changes from an up state to a down state - which is
almost certainly not want you want to happen (you're running runit to
prevent such unrequested transitions).
next prev parent reply other threads:[~2005-11-16 3:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-14 18:03 Charles Duffy
2005-11-16 3:50 ` Charlie Brady [this message]
2005-11-17 9:08 ` Gerrit Pape
2005-11-17 11:13 ` Charles Duffy
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.61.0511152202500.21197@e-smith.charlieb.ott.istop.com \
--to=charlieb-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).