From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1943 Path: news.gmane.org!not-for-mail From: Laurent Bercot Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: runsv spinning 100% CPU (was Re: runsv and EAGAIN) Date: Wed, 18 Feb 2009 01:09:46 +0100 Message-ID: <20090218000946.GA4679@skarnet.org> References: <20080712160716.GA30532@fly.srk.fer.hr> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1234915761 26619 80.91.229.12 (18 Feb 2009 00:09:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Feb 2009 00:09:21 +0000 (UTC) To: supervision@list.skarnet.org Original-X-From: supervision-return-2178-gcsg-supervision=m.gmane.org@list.skarnet.org Wed Feb 18 01:10:37 2009 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 1LZa1M-0003gH-Qo for gcsg-supervision@gmane.org; Wed, 18 Feb 2009 01:10:36 +0100 Original-Received: (qmail 5373 invoked by uid 76); 18 Feb 2009 00:09:47 -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 5365 invoked by uid 1000); 18 Feb 2009 00:09:46 -0000 Mail-Followup-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1943 Archived-At: > Another option would be to have runsv print out an error message like > 'supervise/control exists but is not a fifo.' and exit with 111. This > may be better than forcefully removing a file. I think this is the wiser choice. When in doubt, exit with an error message and let the administrator handle it. However, I'd exit 100, not 111, because the problem is structural, not temporary: it's not that some resource is unavailable, it's that runsv is used incorrectly (i.e. supervise/ has been tampered with). -- Laurent