From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1551 Path: news.gmane.org!not-for-mail From: Lasse Kliemann Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: runsvdir under runsv Date: Wed, 10 Oct 2007 23:47:12 +0200 Message-ID: <20071010214712.GB2375@enterprise.starfleet> References: <20071010131638.GF2046@enterprise.starfleet> <20071010194225.GC71286@grummit.biaix.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="61jdw2sOBCFtR2d/" X-Trace: sea.gmane.org 1192051669 27663 80.91.229.12 (10 Oct 2007 21:27:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 10 Oct 2007 21:27:49 +0000 (UTC) To: supervision@list.skarnet.org Original-X-From: supervision-return-1786-gcsg-supervision=m.gmane.org@list.skarnet.org Wed Oct 10 23:27:43 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 1Ifj5i-00007H-VE for gcsg-supervision@gmane.org; Wed, 10 Oct 2007 23:27:43 +0200 Original-Received: (qmail 4770 invoked by uid 76); 10 Oct 2007 21:27:58 -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 4764 invoked from network); 10 Oct 2007 21:27:58 -0000 Content-Disposition: inline In-Reply-To: <20071010194225.GC71286@grummit.biaix.org> Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1551 Archived-At: --61jdw2sOBCFtR2d/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Joan Picanyol i Puig writes: > * Lasse Kliemann [20071010 = 14:57]: > > I'd like to run a bunch of services in a kind of sub-hierarchy under=20 > > `/service/sub'; more precisely the service in `/service/sub' shall be s= omething=20 > > like runsvdir managing services in a directory `/service/sub/service'. > >=20 > > The naive approach was to let `/service/sub/run' be like this: > >=20 > > #!/bin/sh > > exec runsvdir service > >=20 > > One problem with this is that bringing down all services in=20 > > `/service/sub/services' involves something like > >=20 > > sv o /service/sub ; sv h /service/sub >=20 > What's wrong with 'sv h /service/sub/services/*' ? =20 Howsoever, neither of the two solutions yields an elegant way to make this= =20 work *inductively* starting from the 'root' runsvdir process in /service. Well, one could place sv x ./service/* in /service/sub/finish. > 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. Can this reasonably be applied to any runsvdir (or svscan) process other th= an=20 the 'root' one? --61jdw2sOBCFtR2d/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFHDUhg1gObwed86AkRAiIjAJ0dN8bUtChycbozBUixoxkhxfsSMgCbBGpR Q6sCsYt+s+NAXJeMoyF89cg= =vaea -----END PGP SIGNATURE----- --61jdw2sOBCFtR2d/--