From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/2060 Path: news.gmane.org!not-for-mail From: Alejandro Mery Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: post action Date: Fri, 05 Nov 2010 14:11:16 +0100 Message-ID: <4CD40274.6010105@opensde.org> References: <4CD3EC3D.7070008@opensde.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1288962691 1118 80.91.229.12 (5 Nov 2010 13:11:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 5 Nov 2010 13:11:31 +0000 (UTC) Cc: supervision@list.skarnet.org To: Charlie Brady Original-X-From: supervision-return-2294-gcsg-supervision=m.gmane.org@list.skarnet.org Fri Nov 05 14:11:26 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 1PEM4f-0004dN-AC for gcsg-supervision@lo.gmane.org; Fri, 05 Nov 2010 14:11:21 +0100 Original-Received: (qmail 23123 invoked by uid 76); 5 Nov 2010 13:13: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 23112 invoked from network); 5 Nov 2010 13:13:28 -0000 X-Mail-Scanner: Scanned by qSheff-II-2.1-r3 (http://www.enderunix.org/qsheff/) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 In-Reply-To: Xref: news.gmane.org gmane.comp.sysutils.supervision.general:2060 Archived-At: Hi Charlie, El 05/11/10 13:11, Charlie Brady escribió: > On Fri, 5 Nov 2010, Alejandro Mery wrote: > >> Hi, I have a problem with a service [1] which runs fine and handles HUP, TERM >> correctly and sends output to stderr as a good citizen. Unfortunately it >> (re)creates a unix socket with permissions unfit for the purpose, so I have to >> chmod g+w /var/run/thin-*/socket every time. cron gives me a granularity of 1 >> minute which still makes the application unreachable for up-to one looooong >> minute. >> >> The authors don't care because it works fine when daemonizing... and "one >> shall daemonize the daemons"... no comment on that. >> >> Is there an elegant way of solving this issue with runit? > I don't think it's runit's problem. It's a problem with thin. Since thin > appears to be a daemon written in ruby, you can just patch it. yes, I agree it's not runit's problem, it's thin's problem. And patching leads to maintenance problems. So I was wondering if anyone had solved the "problem" of post actions using service/control/ or similar. > If it were a binary only application, that you couldn't patch, you could > use LD_LIBRARY_PRELOAD to load a shim which captures the chmod call, and > just ignores it if the path matches your socket. that's not a bad idea Regards, Alejandro Mery