From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id sKOJNnOKrGQRMAEASxT56A (envelope-from ) for ; Tue, 11 Jul 2023 00:47:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id AAN3NXOKrGTd2AAAG6o9tA (envelope-from ) for ; Tue, 11 Jul 2023 00:47:15 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6B84E590E0 for ; Tue, 11 Jul 2023 00:47:15 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=gsF8ftgG; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1689029235; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=QlJ/oVVvlrXdDSwRLGOt5hSothnhdeZfW0S8QezsZW8=; b=DhYChxVn3Nkh1/hd/YsycNnWx2K22G+VuOa3BV4O4Pvlon/RBOUFwIaJHnsEAdkL8l8T+y gpkRAHhd5z8TQL6chuq/zQjXvDmMjv5cgMJuRsQymEqdhJts96BCpVFxr+4cMXAeVs/sC4 disxPcaFV6bLrj/grgjpx84Llv+tAZuTez5FXtkmx4k46RmzMM7wu9iHJV0bKJUgS/Jg6I 6quuceQT/ytgiUt4njqrxROIbr/ad/b/I088PzicX6w0/J0RLT4ihe5jyKQ7y/R9dL3SJB CpvXBg6mejuQUxxmeuYDIqNaOl1bHMZ8kg+LCKEIqvzW6/lGn2wqS84W4c4XfA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=gsF8ftgG; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1689029235; a=rsa-sha256; cv=none; b=O6T9yKPjNnJDH6yJz+nWOSVCaeNcKugjOPDhAvaVjbftol5mc90oktYvGHBDXaFUrp8giq v1XUQu7xXesZz+JVtCdA/6WGy/GseaXlzMUT8t1Ww6eDwagJiYQm6aTQq3bhNw2nXfNN+C xc4nKdxdq1Rxl9W/Y8NlN95RTC/3TH/UUmZOYZqeg5KFlv6TA6iyFa4lWhgNOE6ubxKDJC BwDqPRCPFPx3lhR5y1BM5spLehNm95aYQLJwbVF9PrLcqW9NTf7msyMkjjGf6PlIssuffX 8E2rckGtZYK70JmSHrJ6I0bDZr2fI+bn1NPb86g+BlvUGuiZ3fTyCieOyVN1Vg== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qIzeq-0007FW-Ik; Mon, 10 Jul 2023 18:47:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qIzeo-0007E6-VN for bug-guix@gnu.org; Mon, 10 Jul 2023 18:47:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qIzeo-0007JX-HZ for bug-guix@gnu.org; Mon, 10 Jul 2023 18:47:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qIzeo-0003Hp-DY for bug-guix@gnu.org; Mon, 10 Jul 2023 18:47:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#64455: shepherd: unable to use redefined system/system* in 0.10.1 Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 10 Jul 2023 22:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64455 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: buma2023@outlook.fr Cc: 64455@debbugs.gnu.org Received: via spool by 64455-submit@debbugs.gnu.org id=B64455.168902917612562 (code B ref 64455); Mon, 10 Jul 2023 22:47:02 +0000 Received: (at 64455) by debbugs.gnu.org; 10 Jul 2023 22:46:16 +0000 Received: from localhost ([127.0.0.1]:49361 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qIze3-0003GY-Oz for submit@debbugs.gnu.org; Mon, 10 Jul 2023 18:46:16 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54488) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qIze1-0003GK-LD for 64455@debbugs.gnu.org; Mon, 10 Jul 2023 18:46:15 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qIzdw-00078J-6E; Mon, 10 Jul 2023 18:46:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=QlJ/oVVvlrXdDSwRLGOt5hSothnhdeZfW0S8QezsZW8=; b=gsF8ftgGVPJXdUAoxwTk 0Nckes8voBP3tZN6S1BjNemXeDoSZ6wIHksQcaniBIcZ6dresMNel1pK4ooL3L8Z0+/T1FCknNvEJ g3MlkMIhxdUMi5TGGzn3JUF4DInOcp0RxAbh6Ot3JwC8DHOgdE0IUczFtwGglEgN/iClipzqUmFzx JOM2/MEpocTXQYXgRLh4rIPWdq68GQJAnwd1RfZJP6z9EmxJhRLNFd9wmsLnGlKos1MX/N7+mC4nT OGg8G0zNMF5N1jU875Y8Aoel7GMAipxhLbnq+8hx9+Jf0m4GeifSNrO9FT6bzHaM8wdMTQegMNk9s yf1k5p8TaRtMsQ==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qIzdv-0000FS-PO; Mon, 10 Jul 2023 18:46:07 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: Date: Tue, 11 Jul 2023 00:46:05 +0200 In-Reply-To: (buma's message of "Mon, 3 Jul 2023 17:46:33 +0000") Message-ID: <87ilar5qs2.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -7.19 X-Spam-Score: -7.19 X-Migadu-Queue-Id: 6B84E590E0 X-Migadu-Scanner: mx1.migadu.com X-TUID: q32iWf2nHbYs Hi, "buma2023@outlook.fr" skribis: > I am using happily shepherd since a few years as my init system on > Debian: amd64 (desktop and notebook), armhf (Cubox). Interesting! I didn=E2=80=99t know of such uses. > I was using 0.9.1 with guile-3.0.5 and fibers-1.1.1. > > I recently tried 0.10.1 with guile-3.0.9 and fibers 1.3.1 and > encountered a problem with using system and system* in my services: > the simple fact to have the symbol system or system* in > /etc/shepherd.scm or included files (even if the command is not > executed) leads to a misbehaving shepherd, more specifically the > shepherd socket disappears; the system boots but with multiple > instances of the launched daemons. > > If a system/system* command is executed while booting, shepherd > blocks at the point of its execution. > > Example of service causing the failure: > > (register-services > (make > #:provides '(mytest) > #:start (lambda args > =E2=80=82=E2=80=82=E2=80=82=E2=80=82=E2=80=82 (system "touch /tmp/so= mefile") > =E2=80=82=E2=80=82=E2=80=82=E2=80=82=E2=80=82 #t) > )) > > The service is not started at boot, I have to do it manually afterwards, > but I never can go there, as the shepherd socket is missing. I can reproduce it like this: --8<---------------cut here---------------start------------->8--- $ cat /tmp/t.conf (register-services (make #:provides '(mytest) #:start (lambda args (system "touch /tmp/somefile") #t))) (start 'mytest) $ shepherd -I -c/tmp/t.conf -s /tmp/sock=20 Starting service root... Service root started. Service root running with value #t. Service root has been started. Starting service mytest... C-c C-z [1]+ Stopped shepherd -I -c/tmp/t.conf -s /tmp/sock $ bg [1]+ shepherd -I -c/tmp/t.conf -s /tmp/sock & $ herd -s /tmp/sock status herd: error: /tmp/sock: Connection refused --8<---------------cut here---------------end--------------->8--- This is both with 0.10.1 and with d5ed516e736ce473902cc86b5cf4f61f27ebb642. To be continued=E2=80=A6 Ludo=E2=80=99.