From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1290 Path: news.gmane.org!not-for-mail From: Laurent Bercot Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: Option for runsv/runsvdir to specify how many times to restart a service in a certain time period before giving up? Date: Mon, 30 Oct 2006 14:38:47 +0100 Message-ID: <20061030133847.GA25085@skarnet.org> References: <4543AEE3.50200@alex-smith.me.uk> <20061030104923.GC32166@home.power> <20061030121321.GA27602@fly.srk.fer.hr> <20061030123019.GA30814@home.power> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1162215516 10571 80.91.229.2 (30 Oct 2006 13:38:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 30 Oct 2006 13:38:36 +0000 (UTC) Original-X-From: supervision-return-1526-gcsg-supervision=m.gmane.org@list.skarnet.org Mon Oct 30 14:38:34 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 1GeXLP-00054q-3h for gcsg-supervision@gmane.org; Mon, 30 Oct 2006 14:38:27 +0100 Original-Received: (qmail 25580 invoked by uid 76); 30 Oct 2006 13:38:48 -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 25570 invoked by uid 1000); 30 Oct 2006 13:38:47 -0000 Mail-Followup-To: supervision@list.skarnet.org Original-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: <20061030123019.GA30814@home.power> User-Agent: Mutt/1.4i Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1290 Archived-At: I also tend to think this feature goes outside the scope of "basic" supervision tools as runit and daemontools. Sure, it could be integrated in such tools, and not even make them too bloated; nevertheless, I like the simple guarantees that they offer, and would prefer not to alter their semantics too much. The feature can rather easily be implemented on a higher layer. You could write a program that checks the restarting rate (provided runit notifies some place when it restarts the service - I really need to finish that notify library of mine :/ - is a program currently able to listen to such an event without polling anything ?) and touches the "down" file when the restart rate is too high. -- Laurent