From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Shepherd does not recycle zombie processes Date: Wed, 09 Nov 2016 15:49:01 +0100 Message-ID: <87eg2kaeua.fsf@gnu.org> References: <1478384577.31924.2.camel@rdmp.org> <87eg2ny8ka.fsf@gnu.org> <87a8db5xpu.fsf@zancanaro.id.au> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38684) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c4UBY-0007Dp-I6 for guix-devel@gnu.org; Wed, 09 Nov 2016 09:49:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c4UBU-0007gO-IS for guix-devel@gnu.org; Wed, 09 Nov 2016 09:49:08 -0500 In-Reply-To: <87a8db5xpu.fsf@zancanaro.id.au> (Carlo Zancanaro's message of "Mon, 07 Nov 2016 22:35:41 +1100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Carlo Zancanaro Cc: guix-devel@gnu.org Hi, Carlo Zancanaro skribis: > Yeah, I saw that note in the documentation. I used to have > > (action 'shepherd 'daemonize) > > as the first line in ~/.config/shepherd/init.scm. Is there some other > way that I was supposed to do that? No, I think that should work. > With that line in place, Shepherd will leave behind a process every > time I stop/start a service. > > I have attached an example init.scm that does this for me. If I start:=20 > > shepherd -c init.scm > > and then run: > > herd stop sleep > herd start sleep > herd stop sleep > herd start sleep > herd stop sleep > > then I will have three zombie sleep processes underneath my Shepherd > process. (If the service were respawnable then it also would fail to > restart the service.) Could you run shepherd in =E2=80=9Cstrace -f=E2=80=9D and see where the SIG= CHLD signals go? Thanks, Ludo=E2=80=99.