From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1375 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: Thu, 22 Feb 2007 22:51:50 -0500 Message-ID: <5422d5e60702221951h1abb7e60l77717192900a63a8@mail.gmail.com> References: <5422d5e60702211214q7ecaf23co838e9ff1b9be32de@mail.gmail.com> <5422d5e60702211304g5051747aoad3dd893abaf0b16@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_43657_9790333.1172202710406" X-Trace: sea.gmane.org 1172202722 5234 80.91.229.12 (23 Feb 2007 03:52:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 23 Feb 2007 03:52:02 +0000 (UTC) To: supervision@list.skarnet.org Original-X-From: supervision-return-1611-gcsg-supervision=m.gmane.org@list.skarnet.org Fri Feb 23 04:51:54 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 1HKRTN-0006gy-Uz for gcsg-supervision@gmane.org; Fri, 23 Feb 2007 04:51:54 +0100 Original-Received: (qmail 1884 invoked by uid 76); 23 Feb 2007 03:52:14 -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 1879 invoked from network); 23 Feb 2007 03:52:14 -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:references:x-google-sender-auth; b=Ic6BNj7wyGeAudqthvm7DS65SgwOU8SIjP5XkPDT9QHpeVI7d7DWGvpYuVSUuHy17wc+Tm2LYw5OxbIKJlbdPzK9holMbO6fB5e3YoA/pChdMtRPK6Ks7yPOBBrV/z94CeDxOpjpEUMsQHBma92SCqYtEcdfe3lSlkh90tSRldU= 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:references:x-google-sender-auth; b=d/Geql1JWtlh1PGjN7y0B/0F/3Z2m0xgTCWZkebyBO60UgEILuk9N2Rn0dseCL0Da1Yz56c0/HtWYuX4vDTEHAQFs1aZItTNfl4IWyackCLp/SC1pxowbQmpWat3UzMZTg62zwrSSQI6Eix1bo0rQs7Oo/ED/6XHMaO4ssj0fWk= Original-Sender: djbclark@gmail.com In-Reply-To: <5422d5e60702211304g5051747aoad3dd893abaf0b16@mail.gmail.com> X-Google-Sender-Auth: b50cb00c77ae0fdd Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1375 Archived-At: ------=_Part_43657_9790333.1172202710406 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline I made a simple test case that should make this bug (or my error in using the software) easy to reproduce. I'm attaching it since it is so tiny; it is also available from http://opensysadmin.com/bugs/runit/test1-service.tar.bz2 Below is a transcript of using it to demonstrate the problem: root@cmlab:/tmp# tar xfj test1-service.tar.bz2 root@cmlab:/tmp# cd test1-service/ root@cmlab:/tmp/test1-service# ./runsvdir-here ^C root@cmlab:/tmp/test1-service# ps auxw | grep [s]v root 19882 0.0 0.0 2516 348 ? Ss 22:28 0:00 runsv test1-service root 19883 0.0 0.0 2656 368 ? S 22:28 0:00 /usr/local/bin/svlogd -tt ./logs root 19884 0.0 0.0 10060 1408 ? S 22:28 0:00 /bin/sh ./test1-sv.sh root@cmlab:/tmp/test1-service# sv exit /tmp/test1-service/var-service/test1-service root@cmlab:/tmp/test1-service# sleep 7 root@cmlab:/tmp/test1-service# ps auxw | grep [s]v root 19882 0.0 0.0 2516 348 ? Ss 22:28 0:00 runsv test1-service root 19883 0.0 0.0 2656 368 ? S 22:28 0:00 /usr/local/bin/svlogd -tt ./logs root@cmlab:/tmp/test1-service# rm var-service/test1-service root@cmlab:/tmp/test1-service# sleep 7 root@cmlab:/tmp/test1-service# ps auxw | grep [s]v root 19882 0.0 0.0 2516 348 ? Ss 22:28 0:00 runsv test1-service root 19883 0.0 0.0 2656 368 ? S 22:28 0:00 /usr/local/bin/svlogd -tt ./logs (I would think runsv and svlogd should not be showing up here, because runsvdir is no longer running, sv exit has been called, and the run director has been removed, with >5 second pauses between the removal and the ps) ------=_Part_43657_9790333.1172202710406 Content-Type: application/x-bzip2; name=test1-service.tar.bz2 Content-Transfer-Encoding: base64 X-Attachment-Id: f_eyi369tq Content-Disposition: attachment; filename="test1-service.tar.bz2" QlpoOTFBWSZTWR44MOkABAl/zO/QAEBtg/+zJ2vURH/l38AAQABCCAEASEACfa1mi0NhFRAmJ6Ro RGCBpowTEYA9FBp6IwkSGpkVPUaGQ000zU0AA0wjQABtQ5gTE0GEyZMmRhME00yMTAEMAkSmqepp o0HonoIaAB6hppoMQZAA/s6Fk56fLHBDhtl1F9KssiEygGIQ9MAEu9bg4eGuI1xrH2UK4XaswshU JpUm0Xmk2ntw5MU1cJCYkXhJoAISQOzGfNv2s05yaNBMW9HZ+ZI3CxRgT2/ufd0yomo7NJYk8Ima K08fTRRxJL9Drwn1QFFI22gG0VxE3C8JushtWiDcj1skN58X59oPuuu/ndNgUBqMEFqzKK4QPKpo diClSqNXh4tZ4mhIs9saEjrtCRPPfS3LwJIHh3Rx+F9eMCGJCUAmAmmI8kUYXT9pwIN34p5o2Ivr puPJmTCj6jiqFpY3NrGS6tr3Va4xRLA4VbskrWaTEXL4mIyxWZyaE7pYwkY5s75Wo3F0iRFEJrLG 3GlzlQqZlM84nEEtJVCZVHzUoMWoLFotqxFAS9+8M3GQrMnK4TmpgasNP303dFWfwxL0JAr6FgCq EKpTpdTYypEhGMPcQpdt6saxbbDbhm54qmtI32uSzvvEb0GgTHIcEf4jZnXEOTXlkIy/qOBmtDZs yrqriXaylHJE0BbsKQhoRozwRlTHLGZGsg3LfPTtI3GxCcR9pF2RHuIhTeuqpB8kZkagdwqtRluZ YqDWIsv0zfOlh07KhR7Ig1boQlsSNj2jUNtoKplicQotzCppQAP/F3JFOFCQHjgw6Q== ------=_Part_43657_9790333.1172202710406--