From: ludo@gnu.org (Ludovic Courtès)
To: Dale Mellor <no-reply@rdmp.org>
Cc: guix-devel@gnu.org, Carlo Zancanaro <carlo@zancanaro.id.au>
Subject: Re: Shepherd does not recycle zombie processes
Date: Thu, 24 Nov 2016 14:22:36 +0100 [thread overview]
Message-ID: <877f7t6mhv.fsf@gnu.org> (raw)
In-Reply-To: <1479976026.3365.10.camel@rdmp.org> (Dale Mellor's message of "Thu, 24 Nov 2016 08:27:06 +0000")
Dale Mellor <no-reply@rdmp.org> skribis:
> On Mon, 2016-11-07 at 09:53 +0100, Ludovic Courtès wrote:
>> Hi,
>>
>> Carlo Zancanaro <carlo@zancanaro.id.au> skribis:
>>
>> > I've had problems with Shepherd and its daemonize action. If I run
>> > daemonize (as the first thing when Shepherd starts) then it fails to handle
>> > signals from child processes.
>>
>> Could it be that you invoke the ‘daemonize’ action after respawnable
>> processes have been started? The manual has this caveat (info
>> "(shepherd) The root and unknown services"):
>>
>> ‘daemonize’
>> Fork and go into the background. This should be called before
>> respawnable services are started, as otherwise we would not get the
>> ‘SIGCHLD’ signals when they terminate.
>>
>> HTH,
>> Ludo’.
>
> Update: I'm no longer making any use of the daemonize method, instead
> simply running as a detached process: `( shepherd & )' at a bash
> command-line. It works perfectly well now, reaping (and restarting)
> dead children as necessary.
OK. (That’s also what I do for my user Shepherd.)
> Another problem I see though is that if there are jobs which depend on
> one which has died, those jobs are not recycled. Probably this has not
> been considered yet, and I'm thinking that a bit more thought needs to
> go into the overall design of this thing... (I guess this also ties in
> with the concepts of run-levels and hot-re-configuring the shepherd
> core). Wish I had time to look into it.
Certainly, help welcome! :-)
Thanks,
Ludo’.
next prev parent reply other threads:[~2016-11-24 13:22 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-05 22:22 Shepherd does not recycle zombie processes Dale Mellor
[not found] ` <CAFAGzb_7ryGVJp1zgjYuT_czaS2o5RLMtfkEHGf9m3z=tXJ3mw@mail.gmail.com>
[not found] ` <CAFAGzb99gGz-U-DZTaVZyk1OfMOZG_z8JxiWu3JnfnmHAYgcnQ@mail.gmail.com>
2016-11-06 21:21 ` Carlo Zancanaro
2016-11-07 8:53 ` Ludovic Courtès
2016-11-07 11:35 ` Carlo Zancanaro
2016-11-09 14:49 ` Ludovic Courtès
2016-11-10 13:15 ` Carlo Zancanaro
2016-11-24 8:27 ` Dale Mellor
2016-11-24 13:22 ` Ludovic Courtès [this message]
2016-11-06 22:09 ` Ludovic Courtès
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=877f7t6mhv.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=carlo@zancanaro.id.au \
--cc=guix-devel@gnu.org \
--cc=no-reply@rdmp.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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.