From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1284 Path: news.gmane.org!not-for-mail From: Alex Smith Newsgroups: gmane.comp.sysutils.supervision.general Subject: Option for runsv/runsvdir to specify how many times to restart a service in a certain time period before giving up? Date: Sat, 28 Oct 2006 20:26:27 +0100 Message-ID: <4543AEE3.50200@alex-smith.me.uk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1162063481 23920 80.91.229.2 (28 Oct 2006 19:24:41 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 28 Oct 2006 19:24:41 +0000 (UTC) Original-X-From: supervision-return-1520-gcsg-supervision=m.gmane.org@list.skarnet.org Sat Oct 28 21:24:35 2006 Return-path: Envelope-to: gcsg-supervision@gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by ciao.gmane.org with smtp (Exim 4.43) id 1GdtnG-0007wg-UN for gcsg-supervision@gmane.org; Sat, 28 Oct 2006 21:24:35 +0200 Original-Received: (qmail 20839 invoked by uid 76); 28 Oct 2006 19:24:56 -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 20830 invoked from network); 28 Oct 2006 19:24:55 -0000 User-Agent: Thunderbird 1.5.0.7 (X11/20060916) Original-To: Runit List X-Identified-User: {878:box94.bluehost.com:tuxtalko:alex-smith.me.uk} {sentby:smtp auth 88.105.212.12 authed with alex@alex-smith.me.uk} Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1284 Archived-At: Hi all, Is it possible to add an option to runsv which specifies how many times runsv should try to restart a service in a certain time period before stopping for say, 5 minutes? An example of what I mean - if runsv has to be restarted more than 10 times in 10 seconds, then just idle for 5 minutes before trying again. Otherwise you'd get lots of system resources being taken up by constant attempts to restart it, when it's totally obvious that it's not gonna work - if you see what I mean :-) Also, if this was implemented, there should be an option for runsvdir that specifies this too, which would just be passed on to each runsv proces that it spawns. Is this a good idea? Or not? Thanks! Alex -- Alex Smith Frugalware Linux developer - http://www.frugalware.org