From: Charlie Brady <charlieb-supervision@budge.apana.org.au>
To: Alejandro Mery <amery@opensde.org>
Cc: supervision@list.skarnet.org
Subject: Re: post action
Date: Fri, 5 Nov 2010 08:11:39 -0400 (EDT) [thread overview]
Message-ID: <Pine.LNX.4.64.1011050808001.19184@e-smith.charlieb.ott.istop.com> (raw)
In-Reply-To: <4CD3EC3D.7070008@opensde.org>
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.
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.
> Thanks,
> Alejandro Mery
>
> [1] <http://code.macournoyer.com/thin/>
>
>
next prev parent reply other threads:[~2010-11-05 12:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-05 11:36 Alejandro Mery
2010-11-05 12:11 ` Charlie Brady [this message]
2010-11-05 12:15 ` Charlie Brady
2010-11-05 13:11 ` Alejandro Mery
2010-11-05 13:19 ` Charlie Brady
2010-11-06 12:25 ` Laurent Bercot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.LNX.4.64.1011050808001.19184@e-smith.charlieb.ott.istop.com \
--to=charlieb-supervision@budge.apana.org.au \
--cc=amery@opensde.org \
--cc=supervision@list.skarnet.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).