From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1301 Path: news.gmane.org!not-for-mail From: Alex Efros 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 23:41:32 +0200 Organization: asdfGroup Inc., http://powerman.asdfGroup.com/ Message-ID: <20061030214132.GB12402@home.power> 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> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1162244713 26396 80.91.229.2 (30 Oct 2006 21:45:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 30 Oct 2006 21:45:13 +0000 (UTC) Original-X-From: supervision-return-1537-gcsg-supervision=m.gmane.org@list.skarnet.org Mon Oct 30 22:45:12 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 1Geesv-0006Do-Ap for gcsg-supervision@gmane.org; Mon, 30 Oct 2006 22:41:34 +0100 Original-Received: (qmail 17851 invoked by uid 76); 30 Oct 2006 21:41:54 -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 17845 invoked from network); 30 Oct 2006 21:41:54 -0000 Original-To: supervision@list.skarnet.org Mail-Followup-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: <45463BEA.3050602@alex-smith.me.uk> User-Agent: Mutt/1.5.13 (2006-08-11) Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1301 Archived-At: Hi! 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. 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. Probably it's question for Gerrit. -- WBR, Alex.