From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/705 Path: main.gmane.org!not-for-mail From: Lars Kellogg-Stedman Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: Respawn limit for runsv? Date: Sun, 13 Feb 2005 03:59:37 +0000 (UTC) Message-ID: References: Reply-To: lars@oddbit.com NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1108267243 14023 80.91.229.2 (13 Feb 2005 04:00:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 13 Feb 2005 04:00:43 +0000 (UTC) Original-X-From: supervision-return-944-gcsg-supervision=m.gmane.org@list.skarnet.org Sun Feb 13 05:00:43 2005 Original-Received: from antah.skarnet.org ([212.85.147.14] ident=qmailr) by ciao.gmane.org with smtp (Exim 4.43) id 1D0Aw2-0004xT-4w for gcsg-supervision@gmane.org; Sun, 13 Feb 2005 05:00:38 +0100 Original-Received: (qmail 3138 invoked by uid 76); 13 Feb 2005 04:03:05 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Archive: Original-Received: (qmail 3132 invoked from network); 13 Feb 2005 04:03:05 -0000 X-Injected-Via-Gmane: http://gmane.org/ Original-To: supervision@list.skarnet.org Original-Lines: 23 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 209-6-203-41.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com User-Agent: slrn/0.9.8.1 (Linux) Original-Sender: news X-MailScanner-To: gcsg-supervision@gmane.org Xref: main.gmane.org gmane.comp.sysutils.supervision.general:705 X-Report-Spam: http://spam.gmane.org/gmane.comp.sysutils.supervision.general:705 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