From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 SOvqIhJYrWSMawEASxT56A (envelope-from ) for ; Tue, 11 Jul 2023 15:24:34 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 2H97IhJYrWR5nAAAauVa8A (envelope-from ) for ; Tue, 11 Jul 2023 15:24:34 +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 320DB3D3AE for ; Tue, 11 Jul 2023 15:24:34 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=PR3tACdS; 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=1689081874; 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=KPrXTuTRU8LA3UVqxSLJlhqjg1NJxI6HUgsTcVCxZWI=; b=WHVBhZ3ZOWRDoyzC4hThBJQyUDMIoF+3FERhc/BqH2eY+DWpIncxUUoKXdJE/Whi8/fWI2 hRzmaoJYrHcBGkyyKNrFhxJULF0dxLFdHKHe5d6OVXAx2wC6eNixzSyskDZiin/KqA7lrk 5P5vh2EpcfLDOqijPM811eJPcLKBgg77gNEApWs9PcExmWqGIhXHJQCuLxHDwGFFIhELcV mqKd12TA9gUET3bUC20PYyEngwSu2RkSC5WJqK3JLGi4Z1RhDCIxfZu25bWB8EVSiiRwIm qsQy8msbJalBdDcd3fkzH1Q/xKxFdLtldjK3E58VnQDepu8QP120aBG3tEnPow== 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=PR3tACdS; 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=1689081874; a=rsa-sha256; cv=none; b=K4gYr5AYoMxJdakQJs4I7oYwDmHdFJrb8Ri6i+4QPs0+/9+VTJIexcv9X/5S7X9WxVw/kt ZegRgplcvQ/6KfKSoakfj4Rzu5VGK+Kp2QgxqOG+fUf+ua6Op7/eAa5s6xeT7KKcyezpry 89nJtaPw0Qpt77CAsBFJ6GxF3yWHLsHzgOvftO7PHm7LLABkw0hpZheQwp1WkrfSxK0JCP 9rXkjn/aY25EEZDck70neAs6Q/+8Dk2KVBw1swmX35pQTTsQsYtwX8iv0l1hWQtJxZi7+5 JTQ2k9YRSldE4xxDUIOK4DREcotnCrAQhtrnPQeDr1wuWy4l8bJn8hK+o2i5cw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qJDLf-0003YC-BS; Tue, 11 Jul 2023 09:24:11 -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 1qJDLW-0003T3-Pp for bug-guix@gnu.org; Tue, 11 Jul 2023 09:24:05 -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 1qJDLW-0007bK-HF for bug-guix@gnu.org; Tue, 11 Jul 2023 09:24:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qJDLW-00024e-03 for bug-guix@gnu.org; Tue, 11 Jul 2023 09:24: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: Tue, 11 Jul 2023 13:24:01 +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.16890817947917 (code B ref 64455); Tue, 11 Jul 2023 13:24:01 +0000 Received: (at 64455) by debbugs.gnu.org; 11 Jul 2023 13:23:14 +0000 Received: from localhost ([127.0.0.1]:49930 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qJDKj-00023d-Rh for submit@debbugs.gnu.org; Tue, 11 Jul 2023 09:23:14 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41858) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qJDKg-00023O-9c for 64455@debbugs.gnu.org; Tue, 11 Jul 2023 09:23:12 -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 1qJDKY-0007UW-RJ; Tue, 11 Jul 2023 09:23:04 -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=KPrXTuTRU8LA3UVqxSLJlhqjg1NJxI6HUgsTcVCxZWI=; b=PR3tACdS9jivVS1HTyQE 02ZVGsivYWjwl2C36DVa+uSg4HWZC/ADqX9Qk9FVwG9rgRH8geIeKnfwXZD+FJFZ33hscJ2sY+W7Y YFnTs1Jm9koU1ik4yRGXPOwskyChwYiM69n9iuWoWtn/Yf9WIhHqrxkulTRFl6QhDAgaahRvTQpao P/LUF0MQ/9uQuOfzGyBgj76D11DgKr+taEyCLIu2b1BTCKhdKh5RZPl1Mn3Qf4OJZ+WPadPaEWVWd U81Lk0CEMGEe4C1OEGmbuoon1GfktTpw9KCKlJP5fimLlJ+4XbzSwt4ojlfbbJ86p+wkFxMrueM8L qrJCXgbm3CZ1+Q==; Received: from [193.50.110.205] (helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qJDKQ-0001tZ-AN; Tue, 11 Jul 2023 09:23:02 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87ilar5qs2.fsf@gnu.org> Date: Tue, 11 Jul 2023 15:22:50 +0200 In-Reply-To: <87ilar5qs2.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Tue, 11 Jul 2023 00:46:05 +0200") Message-ID: <875y6q60r9.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.20 X-Spam-Score: -7.20 X-Migadu-Queue-Id: 320DB3D3AE X-Migadu-Scanner: mx1.migadu.com X-TUID: zFdUF7CjFXDd Hi, Ludovic Court=C3=A8s skribis: > "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/s= omefile") >> =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: > > $ 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 > > This is both with 0.10.1 and with > d5ed516e736ce473902cc86b5cf4f61f27ebb642. Sorry, the bug is reproducible with 0.10.1 but *not* with d5ed516e736ce473902cc86b5cf4f61f27ebb642. I believe this was fixed by Shepherd commit 2b310bd3b0ba0d7a08c77b456d34369cd6444edb (that is, after 0.10.1). I think I=E2=80=99ll release 0.10.2 within a couple of weeks, but it would = be great if you could confirm that current Shepherd =E2=80=98master=E2=80=99 w= orks for you. Thanks! Ludo=E2=80=99.