From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1554 Path: news.gmane.org!not-for-mail From: Lasse Kliemann Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: runsvdir under runsv Date: Thu, 11 Oct 2007 18:06:39 +0200 Message-ID: <20071011160639.GK2058@enterprise.starfleet> References: <20071010131638.GF2046@enterprise.starfleet> <20071010194225.GC71286@grummit.biaix.org> <20071010214712.GB2375@enterprise.starfleet> <20071011125048.20432.qmail@f42c8ad0f3482a.315fe32.mid.smarden.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PNpeiK4tTqhYOExY" X-Trace: sea.gmane.org 1192117644 25157 80.91.229.12 (11 Oct 2007 15:47:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 11 Oct 2007 15:47:24 +0000 (UTC) To: supervision@list.skarnet.org Original-X-From: supervision-return-1789-gcsg-supervision=m.gmane.org@list.skarnet.org Thu Oct 11 17:47:23 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 1Ig0Ff-0006h6-TL for gcsg-supervision@gmane.org; Thu, 11 Oct 2007 17:47:07 +0200 Original-Received: (qmail 30297 invoked by uid 76); 11 Oct 2007 15:47:21 -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 30291 invoked from network); 11 Oct 2007 15:47:20 -0000 Content-Disposition: inline In-Reply-To: <20071011125048.20432.qmail@f42c8ad0f3482a.315fe32.mid.smarden.org> Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1554 Archived-At: --PNpeiK4tTqhYOExY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Gerrit Pape writes: > On Wed, Oct 10, 2007 at 11:47:12PM +0200, Lasse Kliemann wrote: > > Well, one could place > >=20 > > sv x ./service/* > >=20 > > in /service/sub/finish. >=20 > That's what I'd suggest, anything wrong with it? Maybe it has got a drawback compared to the solution of sending a HUP to th= e=20 runsvdir process (acting on /service/sub/service). Assume this process is= =20 terminate (by TERM, not HUP), and in the meantime until the finish script= =20 runs, a directory from /service/sub/service is removed. Then the runsv=20 process of that directory will not be terminated. In other words: runsvdir (by its internal list of all PIDs managed) has a= =20 better chance for terminating all runsv processes in /service/sub/service= =20 than a shell script acting based on filenames in /service/sub/service only.= =20 --PNpeiK4tTqhYOExY Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFHDkoP1gObwed86AkRAsQDAKDLBj0TSyHinz6WIVuLZcZApN3GowCgnD37 9pQV5Kj5/CtqYvh++Y1/MKI= =Prg6 -----END PGP SIGNATURE----- --PNpeiK4tTqhYOExY--