From: Lars Kellogg-Stedman <lars@oddbit.com>
Subject: Re: Respawn limit for runsv?
Date: Sun, 13 Feb 2005 03:59:37 +0000 (UTC) [thread overview]
Message-ID: <slrnd0tk98.8b2.lars@flowers.house.oddbit.com> (raw)
In-Reply-To: <lars-744DA8.20145611022005@sea.gmane.org>
My first stab at a respawn limiter is available here:
http://www.oddbit.com/software/respawn/respawn.tar.gz
This is a very simple implementation of a respawn limiter as a wrapper
program; you run it like this:
respawn -- /my/program
If /my/program starts more than m times in n seconds (default 10 times in
120 seconds), respawn will sleep for x seconds (defaults 300). Respawn
keeps a table of start times in a file called 'spawntab' in its current
working directory.
It ain't pretty, but it appears to work.
Let me know what you think.
-- Lars
--
Lars Kellogg-Stedman <lars@oddbit.com>
prev parent reply other threads:[~2005-02-13 3:59 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-11 12:56 Lars Kellogg-Stedman
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 [this message]
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=slrnd0tk98.8b2.lars@flowers.house.oddbit.com \
--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).