supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: Lars Kellogg-Stedman <lars@oddbit.com>
Subject: Respawn limit for runsv?
Date: Fri, 11 Feb 2005 07:56:46 -0500	[thread overview]
Message-ID: <lars-E5D74A.07564511022005@sea.gmane.org> (raw)

Howdy,

Has anyone investigated adding some sort of respawn limiter to runit?  I 
figure that if a program is crashing immediately every time it runs, it 
probably doesn't need to be restarted -- which just floods the logs with 
error message, perhaps overwriting critical log data about what 
precipitated the problem in the first place.

I'm thinking of some sort of setting that will down a service if it dies 
more than m times in n seconds.  This would be controlled via a file in 
the service directory...maybe we can introduce a 'config' file, similar 
to what svlogd uses, to allow per-service configuration?

Alternatively, this could perhaps be farmed out to a wrapper program, so 
that a run script might look like:

  exec respawn_wrapper ...

Any thoughts?



             reply	other threads:[~2005-02-11 12:56 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-11 12:56 Lars Kellogg-Stedman [this message]
2005-02-12  0:14 ` Charlie Brady
2005-02-12  1:14   ` Lars Kellogg-Stedman
2005-02-12  3:13     ` Charlie Brady
2005-02-12  5:21       ` Charles Duffy
2005-02-12 13:04         ` Lars Kellogg-Stedman
2005-02-13 18:42           ` Charlie Brady
2005-02-13 21:21             ` Thomas Schwinge
2005-02-13 13:48         ` Gerrit Pape
2005-02-13 18:19           ` Lars Kellogg-Stedman
2005-02-14 16:23             ` Clemens Fischer
2005-02-13  3:59     ` Lars Kellogg-Stedman

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=lars-E5D74A.07564511022005@sea.gmane.org \
    --to=lars@oddbit.com \
    /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).