From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1295 Path: news.gmane.org!not-for-mail From: Alex Smith 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 17:52:42 +0000 Message-ID: <45463BEA.3050602@alex-smith.me.uk> 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=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1162231546 7258 80.91.229.2 (30 Oct 2006 18:05:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 30 Oct 2006 18:05:46 +0000 (UTC) Original-X-From: supervision-return-1531-gcsg-supervision=m.gmane.org@list.skarnet.org Mon Oct 30 19:05:40 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 1GebHO-0002ht-PL for gcsg-supervision@gmane.org; Mon, 30 Oct 2006 18:50:35 +0100 Original-Received: (qmail 6349 invoked by uid 76); 30 Oct 2006 17:50: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 6339 invoked from network); 30 Oct 2006 17:50:55 -0000 User-Agent: Thunderbird 1.5.0.7 (X11/20060916) Original-To: Runit List In-Reply-To: <20061030123019.GA30814@home.power> X-Identified-User: {878:box94.bluehost.com:tuxtalko:alex-smith.me.uk} {sentby:smtp auth 88.105.212.113 authed with alex@alex-smith.me.uk} Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1295 Archived-At: Alex Efros wrote: > Hi! > > On Mon, Oct 30, 2006 at 01:13:21PM +0100, Dra?en Ka?ar wrote: >> Sure, but if something's a common need for a large group of users, then >> they call it a feature. Some of those who don't need such feature call it >> a bloat, but I don't think that's a valid argument. > > No. Bloat isn't equal to 'new feature'. Bloated software isn't equal to > feature-rich software. But if software has wrong features added in wrong > places (from architecture view) then it's become bloated very quickly. > > Maybe it's good idea to include additional script in runit package (or > distribute it separately) which can be used from ./finish script this way: > > # add 5 minutes timeout if service was started 5 times in last 10 sec > restart-timeout --interval 10 --tries 5 300 > > But adding this functionality to runit is a bad idea just because you > already can develop that restart-timeout script using current runit, > and adding this feature to runit doesn't provide any additional gains. > After all, it's a Unix Way. > Ok, I could try to write something like this myself, but just one question - if the services is running ./finish, what does sv start try to do? I mean, the documentation on runit's website says to use sv start for dependencies. If a service is started that runs sv start some_service, and some_service is running ./finish, what would happen? Thanks, Alex -- Alex Smith Frugalware Linux developer - http://www.frugalware.org