From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1550 Path: news.gmane.org!not-for-mail From: Joan Picanyol i Puig Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: runsvdir under runsv Date: Wed, 10 Oct 2007 21:42:25 +0200 Message-ID: <20071010194225.GC71286@grummit.biaix.org> References: <20071010131638.GF2046@enterprise.starfleet> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1192045358 4760 80.91.229.12 (10 Oct 2007 19:42:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 10 Oct 2007 19:42:38 +0000 (UTC) To: supervision@list.skarnet.org Original-X-From: supervision-return-1785-gcsg-supervision=m.gmane.org@list.skarnet.org Wed Oct 10 21:42:35 2007 Return-path: Envelope-to: gcsg-supervision@gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by lo.gmane.org with smtp (Exim 4.50) id 1IfhRv-0002nO-Et for gcsg-supervision@gmane.org; Wed, 10 Oct 2007 21:42:31 +0200 Original-Received: (qmail 26856 invoked by uid 76); 10 Oct 2007 19:42:46 -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 26845 invoked from network); 10 Oct 2007 19:42:46 -0000 Mail-Followup-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: <20071010131638.GF2046@enterprise.starfleet> User-Agent: Mutt/1.5.11 Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1550 Archived-At: * Lasse Kliemann [20071010 14:57]: > I'd like to run a bunch of services in a kind of sub-hierarchy under > `/service/sub'; more precisely the service in `/service/sub' shall be something > like runsvdir managing services in a directory `/service/sub/service'. > > The naive approach was to let `/service/sub/run' be like this: > > #!/bin/sh > exec runsvdir service > > One problem with this is that bringing down all services in > `/service/sub/services' involves something like > > sv o /service/sub ; sv h /service/sub What's wrong with 'sv h /service/sub/services/*' ? http://cr.yp.to/daemontools/svscan.html "svscan is designed to run forever." The same applies to runsvdir; if you need to stop it, you are doing something wrong. qvb -- pica