From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1308 Path: news.gmane.org!not-for-mail From: Gerrit Pape 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: Wed, 1 Nov 2006 12:01:56 +0000 Message-ID: <20061101120156.21820.qmail@b6b634871dc2ed.315fe32.mid.smarden.org> References: <4543AEE3.50200@alex-smith.me.uk> <20061030104923.GC32166@home.power> <20061030121321.GA27602@fly.srk.fer.hr> <20061030123019.GA30814@home.power> <45463BEA.3050602@alex-smith.me.uk> <20061030214132.GB12402@home.power> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1162382514 19176 80.91.229.2 (1 Nov 2006 12:01:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 1 Nov 2006 12:01:54 +0000 (UTC) Original-X-From: supervision-return-1544-gcsg-supervision=m.gmane.org@list.skarnet.org Wed Nov 01 13:01:49 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 1GfEml-0002RB-Na for gcsg-supervision@gmane.org; Wed, 01 Nov 2006 13:01:35 +0100 Original-Received: (qmail 20460 invoked by uid 76); 1 Nov 2006 12:01:57 -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 20455 invoked from network); 1 Nov 2006 12:01:57 -0000 Original-To: supervision@list.skarnet.org Mail-Followup-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: <20061030214132.GB12402@home.power> Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1308 Archived-At: On Mon, Oct 30, 2006 at 11:41:32PM +0200, Alex Efros wrote: > On Mon, Oct 30, 2006 at 05:52:42PM +0000, Alex Smith wrote: > > 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? > > Hmm. That's interesting question. I suppose nothing is happens - if > ./finish hangs then runsv will just wait until it exit. sv will wait for the service to become done (for ./finish to terminate), and to then to be up again (./run running, and using ./check if available), or report timeout. > Maybe sending TERM (or any other signal) to service using `sv t` will send > it to ./finish script if ./finish is running now instead of ./run, but > I'm not sure. No, it's not sending TERM to finish, see http://thread.gmane.org/gmane.comp.sysutils.supervision.general/270/focus=272 Regards, Gerrit.