From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2029 Path: news.gmane.org!not-for-mail From: Jean-Michel Bruenn Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: hello - hanging services Date: Tue, 17 Aug 2010 19:24:22 +0200 Organization: IP Minds Message-ID: <20100817192422.a157e85f.jean.bruenn@ip-minds.de> References: <20100817190803.41e8257f.jean.bruenn@ip-minds.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1282065866 22116 80.91.229.12 (17 Aug 2010 17:24:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 17 Aug 2010 17:24:26 +0000 (UTC) To: supervision@list.skarnet.org Original-X-From: supervision-return-2264-gcsg-supervision=m.gmane.org@list.skarnet.org Tue Aug 17 19:24:25 2010 Return-path: Envelope-to: gcsg-supervision@lo.gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by lo.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1OlPtg-0001yD-3B for gcsg-supervision@lo.gmane.org; Tue, 17 Aug 2010 19:24:24 +0200 Original-Received: (qmail 3040 invoked by uid 76); 17 Aug 2010 17:26:28 -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 3028 invoked from network); 17 Aug 2010 17:26:28 -0000 In-Reply-To: X-Mailer: Sylpheed 3.0.2 (GTK+ 2.20.1; i686-pc-linux-gnu) Xref: news.gmane.org gmane.comp.sysutils.supervision.general:2029 Archived-At: Hello, thanks for your answer. Wouldn't it be a good improvement for runit, if it would take care of hanging tasks, also? There's "run", "finish" and the "log" stuff - wouldn't it be possible to add "check" as script, which is running a command all X seconds and if it gets a response it knows "ah okay, the service is still running" and if it gets no response "oh, the service seems to have died, let's restart it"? Of course, totally optional, up to the user whether to use that or not. Difficult to implement? Cheers On Tue, 17 Aug 2010 13:13:55 -0400 (EDT) Charlie Brady wrote: > > On Tue, 17 Aug 2010, Jean-Michel Bruenn wrote: > > > Hey, > > > > i'm curious what happens with hung(hanging?) services (or zombies) is it > > possible with runit to detect those and restart the service? > > hung/hanging services and zombies are different things. A zombie is a > process which doesn't exist - it's just a process remnant - a status > report which the kernel is hanging onto waiting for someone to ask for it. > A hung/hanging services is a real process, but one which isn't doing what > you want it to do. runit does not detect and restart those. It only > restarts processes which have died. -- Jean-Michel Bruenn