From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1311 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: Wed, 1 Nov 2006 14:17:15 +0200 Organization: asdfGroup Inc., http://powerman.asdfGroup.com/ Message-ID: <20061101121715.GA20304@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> <20061030214132.GB12402@home.power> <20061101120156.21820.qmail@b6b634871dc2ed.315fe32.mid.smarden.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1162383448 23116 80.91.229.2 (1 Nov 2006 12:17:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 1 Nov 2006 12:17:28 +0000 (UTC) Original-X-From: supervision-return-1547-gcsg-supervision=m.gmane.org@list.skarnet.org Wed Nov 01 13:17:26 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 1GfF1w-0005Ub-Ro for gcsg-supervision@gmane.org; Wed, 01 Nov 2006 13:17:16 +0100 Original-Received: (qmail 21591 invoked by uid 76); 1 Nov 2006 12:17:38 -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 21585 invoked from network); 1 Nov 2006 12:17:38 -0000 Original-To: supervision@list.skarnet.org Mail-Followup-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: <20061101120156.21820.qmail@b6b634871dc2ed.315fe32.mid.smarden.org> User-Agent: Mutt/1.5.13 (2006-08-11) Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1311 Archived-At: Hi! On Wed, Nov 01, 2006 at 12:01:56PM +0000, Gerrit Pape wrote: > No, it's not sending TERM to finish, see > http://thread.gmane.org/gmane.comp.sysutils.supervision.general/270/focus=272 So, if ./finish hangs there no way to kill it using runit? One should manually find PID of hang process and kill it to exit from ./finish and restart service? This make all non-trivial tasks very dangerous to use in ./finish. I agree with race you explained, but I think runsv should be able to control (kill) all processes it spawn, including ./finish script and scripts in ./control/ directory (probably ./check script is different because it isn't executed by runsv). I don't sure about right interface for this task (using `sv t` to send TERM to ./finish is surely bad idea). -- WBR, Alex.