From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1361 Path: news.gmane.org!not-for-mail From: Toni Mueller Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: daemon under runit? Date: Thu, 14 Dec 2006 14:02:59 +0100 Message-ID: References: <20061205223442.10292.qmail@oak.oeko.net> <20061206134616.GA17175@home.power> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1166109316 4633 80.91.229.10 (14 Dec 2006 15:15:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 14 Dec 2006 15:15:16 +0000 (UTC) Original-X-From: supervision-return-1597-gcsg-supervision=m.gmane.org@list.skarnet.org Thu Dec 14 16:15:15 2006 Return-path: Envelope-to: gcsg-supervision@gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by dough.gmane.org with smtp (Exim 4.50) id 1GusIi-0003Jh-FW for gcsg-supervision@gmane.org; Thu, 14 Dec 2006 16:15:12 +0100 Original-Received: (qmail 32648 invoked by uid 76); 14 Dec 2006 15:15:33 -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 32642 invoked from network); 14 Dec 2006 15:15:33 -0000 X-Injected-Via-Gmane: http://gmane.org/ Original-To: supervision@list.skarnet.org Original-Lines: 25 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: p57ba46dc.dip.t-dialin.net User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.8) Gecko/20061025 Thunderbird/1.5.0.8 Mnenhy/0.7.4.0 In-Reply-To: <20061206134616.GA17175@home.power> Original-Sender: news Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1361 Archived-At: Alex Efros wrote: > On Tue, Dec 05, 2006 at 11:34:42PM +0100, Toni Mueller wrote: >> something like "sv down service". Unfortunately, in most cases, this >> does not seem to work - the control/t script is not accessed when I >> issue 'sv down service' (as "ls -lta" shows). One of the problems is > > You should use control/d instead of control/t if you wish to catch `sv down`. Well, the man page says that control/t is executed before d or x on either 'down' or 'exit'. From http://smarden.sunsite.dk/runit/runsv.8.html: "On command d first service/control/t is checked, and then service/control/d. On command x first service/control/t is checked, and then service/control/x." > It's usually simple enough to patch any program to not fork. That's what I eventually did. Thank you! Best, --Toni++