From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id yKwsGK7CDGNXSwAAbAwnHQ (envelope-from ) for ; Mon, 29 Aug 2022 15:44:14 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id yOkTF67CDGN8PgAAG6o9tA (envelope-from ) for ; Mon, 29 Aug 2022 15:44:14 +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 E52383608B for ; Mon, 29 Aug 2022 15:44:13 +0200 (CEST) Received: from localhost ([::1]:48276 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oSf3k-0002AU-Mx for larch@yhetil.org; Mon, 29 Aug 2022 09:44:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52098) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSf3a-0002AJ-M3 for bug-guix@gnu.org; Mon, 29 Aug 2022 09:44:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42454) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oSf3a-0001m3-DP for bug-guix@gnu.org; Mon, 29 Aug 2022 09:44:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oSf3Z-0000NF-Vd for bug-guix@gnu.org; Mon, 29 Aug 2022 09:44:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#55898: Services depending on new Shepherd features may fail until reboot Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 29 Aug 2022 13:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55898 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxim Cournoyer Cc: Maxime Devos , 55898@debbugs.gnu.org Received: via spool by 55898-submit@debbugs.gnu.org id=B55898.16617806021382 (code B ref 55898); Mon, 29 Aug 2022 13:44:01 +0000 Received: (at 55898) by debbugs.gnu.org; 29 Aug 2022 13:43:22 +0000 Received: from localhost ([127.0.0.1]:60436 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oSf2w-0000MD-1H for submit@debbugs.gnu.org; Mon, 29 Aug 2022 09:43:22 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41340) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oSf2u-0000Ly-8o for 55898@debbugs.gnu.org; Mon, 29 Aug 2022 09:43:20 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:42484) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSf2o-0001il-CM; Mon, 29 Aug 2022 09:43:14 -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=602L5BLSNIeZAvWZBbN1I34TaYEioswgjE7/Of+tLis=; b=Eaj1fW4mHbgh/G1nYdAH d45p68XtpS88m0E5/Q1VQWsWxv9rf7NppWEWQXhMoOB/BShf0Z9A+BRqYrGvCQzYgSaj5m9RdiD1Y Y7Pci3iMfj7e7gywjvHlMe0PU5VpCcALufCDXz2wvwPtOJ9pBfc0YBOXlwi2KF5BMcQPUzgDyYdUu ytb5T1Ji45NmEUh5G3gh6/BhX18OlE3ZKz40teoyGGm2XxwT2YjvvM77kxYdjI0uG1mxWRvC8aUgq zRHZLMTpexXVQ2llE4RjewbvQ770SntQ2rngga3Zh40mufCV6idFyysHMuqrBoOTBXwI5j/xx754s 1qcTrdLZfRaihw==; Received: from [193.50.110.104] (port=34990 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSf2n-0001Ut-VS; Mon, 29 Aug 2022 09:43:14 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <87a6ajg2zv.fsf@gmail.com> <5521716772922285f7c6bc381c82613026eebbd9.camel@telenet.be> <87bkuvdoe4.fsf@gmail.com> <87r13ex7nw.fsf_-_@gmail.com> <87mtdl2a7u.fsf_-_@gmail.com> <87ilo9294m.fsf@gmail.com> <87a693pjm7.fsf_-_@gnu.org> <87r12fqf6j.fsf@gmail.com> Date: Mon, 29 Aug 2022 15:43:11 +0200 In-Reply-To: <87r12fqf6j.fsf@gmail.com> (Maxim Cournoyer's message of "Thu, 21 Jul 2022 00:10:12 -0400") Message-ID: <87y1v75fo0.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1661780654; 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=602L5BLSNIeZAvWZBbN1I34TaYEioswgjE7/Of+tLis=; b=jAuicSikCDHqSwUAIwkEp5J6iwjFgv+VlU+ZEo2FPj7GfG8SdVqIr9d3zXKI2bKXYo+osc sWuBPquPdtxxLfY8W1ToR9xj6Rw7hgBeVoGteIkSb01DKtkbDmPIGeEXe9/YN3qxINAvuZ v0sd0asUxBp4XlwnuSGmbJw3XuyIrvLzdOfXBf43j2YByS6kaeugYjq3FzWDXHC2S47fYU 3ko8UoGtC7q3L2jyJTJSIXYDM75Vo1Ybr8pX6AnrJ+H61PRDr4GKMO7fnDNiMyCJHaexrQ EAlulJ27+1RC7eve+iA7a+p2cq0Gz0IsmNkWroCCOhs4mGKK2ZG0Y6ZObmXe2g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1661780654; a=rsa-sha256; cv=none; b=Sljvat84BrnPrcZZ3ycDJOIOjEa+xL3bbh/8rwGyHOil+eQor8JnzBD4/APmkAUSqwTUhS 7YdvZQnCLzXytVHp21pk8O4SPLjQb2QHJnZqfR8DBjT4Ofz+oJKbCe45+ATRQyugJvCrFr JuywMm6iQdPrvM+gOrfVgTJkU2OLoS1GOMENRUnbD5nCStNTfKUZLlIcCsF2jGrDUc6kG9 ZsSxF6bNijQqLrMfq333n9rC7KN7qzhS8i9+PkTiCFAF53w1VjtNxCqXCzvo81VVVlcxGa gyDXicVy6rKr9mXYZRetvCKPBkYX73lhB+waYjxQs7Ax5o+28z0GRYz4x7desg== 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=Eaj1fW4m; 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" X-Migadu-Spam-Score: -4.80 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=Eaj1fW4m; 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" X-Migadu-Queue-Id: E52383608B X-Spam-Score: -4.80 X-Migadu-Scanner: scn0.migadu.com X-TUID: KkPKNkD9+kgV Hi, Maxim Cournoyer skribis: > Ludovic Court=C3=A8s writes: [...] >> Yes. The issue is that we=E2=80=99re more free-style than systemd: we= =E2=80=99re >> basically loading code live in the running Shepherd. So we have to >> write that code such that it works with older Shepherd versions. >> >> This is why we have things like conditions on >> >> (defined? 'make-inetd-constructor) >> >> and the likes, with a fallback. > > I saw that used somewhere, but I still think a minimally required > Shepherd version field could be of use on services, for the following > reasons: > > 1. Otherwise each services are left implementing ad-hoc solutions. > > 2. It's more complicated to be compatible with two Shepherd version than > simply mentioning the minimum version required, and prevent the service > from running until it is satisfied (especially on a system like Guix > System where we *know* what is the current version of Shepherd > available). I think it=E2=80=99s a situation similar to =E2=80=9Cfeature tests vs. iden= tity tests=E2=80=9D in build system configuration (checking whether the libc function you want to use is available rather than checking whether =E2=80=98uname=E2=80= =99 returns =E2=80=9CLinux=E2=80=9D), and for the same reason I tend to prefer feature = tests as shown above. I won=E2=80=99t pretend it=E2=80=99s pretty :-), but I don=E2=80=99t see an= improvement feasible in the short term. In the long term, maybe we=E2=80=99d want the service API in the Shepherd t= o be more declarative, more like packages in Guix. But that=E2=80=99s more for = a 2.0 horizon IMO. Perhaps we should close this issue unless it becomes actionable? Thanks, Ludo=E2=80=99.