From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1388 Path: news.gmane.org!not-for-mail From: "Daniel Clark" Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: How to kill runsv, no matter what? Date: Wed, 28 Feb 2007 18:24:49 -0500 Message-ID: <5422d5e60702281524i5181f88dmdbcc77039ae98031@mail.gmail.com> References: <5422d5e60702211214q7ecaf23co838e9ff1b9be32de@mail.gmail.com> <5422d5e60702211304g5051747aoad3dd893abaf0b16@mail.gmail.com> <5422d5e60702221951h1abb7e60l77717192900a63a8@mail.gmail.com> <20070223140504.17459.qmail@3f646761ee1f68.315fe32.mid.smarden.org> <5422d5e60702230932q609f8ea8n76a3856c8b6cb3cc@mail.gmail.com> <5422d5e60702230946w2a69034exa0848c8c5163a7ad@mail.gmail.com> <5422d5e60702231025j690ef1e9lb59d82d0c3c14f39@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1172705126 16134 80.91.229.12 (28 Feb 2007 23:25:26 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 28 Feb 2007 23:25:26 +0000 (UTC) To: supervision@list.skarnet.org Original-X-From: supervision-return-1625-gcsg-supervision=m.gmane.org@list.skarnet.org Thu Mar 01 00:25:17 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 1HMYAd-0001Mg-Uj for gcsg-supervision@gmane.org; Thu, 01 Mar 2007 00:25:16 +0100 Original-Received: (qmail 15706 invoked by uid 76); 28 Feb 2007 23:25:37 -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 15701 invoked from network); 28 Feb 2007 23:25:37 -0000 DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=cBW90uAOw6sgY3GNg85U/KZWF7Rhl7JoFPP7zsEBLjut3JNO+ieilZXmhhb2OoJ6jHrrYLLVFfmxmix0+/oPE5GWmJrxsa8PVz4EENboo5RPilHpEoWT5HudPEgRLFrAyMKg5IGwTBlEKqxgAJlKlPsiQh4u1WLKB7bPVR2d2kE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=XuOQF7yIyPDGYu5lcjZN3tsU92ekV+6140xxUulAA025JTUgF49ziuG3wt5RsHtdOZ3KkgcSBAlOj3iUArdAOZZa/5Yn6Oid60sp/KhDWX5r6mrAh4sDaV+FKyKSlXavvKc8Waoo5CvXGolDBuaByNUhARYqHtaeeCJkczI5If0= Original-Sender: djbclark@gmail.com In-Reply-To: Content-Disposition: inline X-Google-Sender-Auth: 615bfa513029c3c4 Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1388 Archived-At: On 2/23/07, Paul Jarc wrote: > "Daniel Clark" wrote: > > Okay, so let's assume we have a service that does not have this "bug", > > but that is running and shouldn't be force killed (e.g. we want to > > wait until sleep times out, or until some non-atomic process is > > complete). Is there any way to block until that happens? > > sv -v > http://smarden.org/runit/sv.8.html Thanks; I now have a package of runit that I can install/uninstall/reinstall consistently without leaving anything behind. It uses a combination of sv -v (to avoid the problem) on package remove, and a kill pipeline (not yet tested on *nix other than GNU/Linux) on install. Sort of ugly, but it works. If anyone else uses encap, the package is up at: http://tinyurl.com/2nrdx7 It works for running runit's runsvdir under inittab or upstart control. -- Daniel Clark # http://dclark.us # http://opensysadmin.com