From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 MMPKHN/R2GLd0gAAbAwnHQ (envelope-from ) for ; Thu, 21 Jul 2022 06:11:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id KJGZG9/R2GLHdQAAauVa8A (envelope-from ) for ; Thu, 21 Jul 2022 06:11:11 +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 1C01B31C26 for ; Thu, 21 Jul 2022 06:11:11 +0200 (CEST) Received: from localhost ([::1]:36386 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oENWo-0005Rp-B2 for larch@yhetil.org; Thu, 21 Jul 2022 00:11:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59958) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oENWg-0005RT-MZ for bug-guix@gnu.org; Thu, 21 Jul 2022 00:11:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:46650) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oENWg-00018h-De for bug-guix@gnu.org; Thu, 21 Jul 2022 00:11:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oENWg-0000ve-7I for bug-guix@gnu.org; Thu, 21 Jul 2022 00:11:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#55898: Services depending on new Shepherd features may fail until reboot Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 21 Jul 2022 04:11:02 +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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: Maxime Devos , 55898@debbugs.gnu.org Received: via spool by 55898-submit@debbugs.gnu.org id=B55898.16583766243512 (code B ref 55898); Thu, 21 Jul 2022 04:11:02 +0000 Received: (at 55898) by debbugs.gnu.org; 21 Jul 2022 04:10:24 +0000 Received: from localhost ([127.0.0.1]:36398 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oENW3-0000uZ-OO for submit@debbugs.gnu.org; Thu, 21 Jul 2022 00:10:24 -0400 Received: from mail-qv1-f47.google.com ([209.85.219.47]:39716) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oENVz-0000u5-Rb for 55898@debbugs.gnu.org; Thu, 21 Jul 2022 00:10:21 -0400 Received: by mail-qv1-f47.google.com with SMTP id t7so336522qvz.6 for <55898@debbugs.gnu.org>; Wed, 20 Jul 2022 21:10:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=f55GwCsgcxOLrB/957baVSKJ9BiNH8WWUaGw1xHsWb8=; b=c8Ug0cnUI6LoFq4PkqdHbOVfc+fhcpT/Dt0bMg/HEhw66vAkomfZshueRZwHhqe5JK I4MJfxA9nzaAvBsDC2r9GUEjEQV/NlMMZcJrCcdhZAbfHJ9vGjRVfmvYQxWELUwpcV4H OVk1uiWb7Kjy2i/ndqW86rbAK9aNBJQa5rE3N3WE5v+7jBCfOind7Blge1Y5zldl+aa4 LULZMRCFgy8hvAC7b/R+iU6ALKD/S3Nou6v07gzf6zpbZPRlZoqkQ6nC+uaRL+TRth/i HKMt77ctZ82l0wZN8cBL0naD3fg6i8+8NU06QJ8MjeID+L4EAkKgBdP28fyr01+rOsCR kxPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=f55GwCsgcxOLrB/957baVSKJ9BiNH8WWUaGw1xHsWb8=; b=qSjIGR6znVW+aHjhKQ7hbv4aSscnbz39qz9gJduk995JdX2wQwVaImtG9WKQKfJfEV jfrdpSJPs7GZiVeU+xcrndSAoFiFYGqaYQajVfEGjIODwphHBdKlLEpx2eiRZT9Dl6Mc rxSXwft/ZV6TYRiKbUyksiHud6QsDyHVn7F/tm/+j2bu2c9NxPpMxMS9YNUws0BSrNhC Z5ztaVKV9WUjCPywjc9gdVre98XMnnxmFmoGSz4pO9mv2YClLkOhMmVcg/gRYpJq2Jjp wDNaC7nNtORqjusphMutdp9UTrpQXnjjWTiabKs5SBqdVIYKYUsqBM9/xwngmUL3qIOW DfgA== X-Gm-Message-State: AJIora9W9dm3T6+hCKTQBh3QX7CVh7+oBwa/flqZR3qgXvm/o/b+CvVv 7XvJzCQ7yxHOt5uygGQ1LR8yib5f6eo= X-Google-Smtp-Source: AGRyM1v/qPpt2FNu6DTbseft9JKIaalzkxJXjws1ScBd4wG/d/W/Oyjvb3onqFQspREvxe8NZ6zMNA== X-Received: by 2002:ad4:5dc7:0:b0:473:e8d0:220d with SMTP id m7-20020ad45dc7000000b00473e8d0220dmr10605382qvh.128.1658376614097; Wed, 20 Jul 2022 21:10:14 -0700 (PDT) Received: from hurd (dsl-10-148-92.b2b2c.ca. [72.10.148.92]) by smtp.gmail.com with ESMTPSA id bi7-20020a05620a318700b006b555509398sm608713qkb.136.2022.07.20.21.10.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Jul 2022 21:10:13 -0700 (PDT) From: Maxim Cournoyer 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> Date: Thu, 21 Jul 2022 00:10:12 -0400 In-Reply-To: <87a693pjm7.fsf_-_@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Wed, 20 Jul 2022 23:19:44 +0200") Message-ID: <87r12fqf6j.fsf@gmail.com> 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=1658376671; 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=f55GwCsgcxOLrB/957baVSKJ9BiNH8WWUaGw1xHsWb8=; b=OHSfbzWMeCqdpHiXMxwZlG2rxqo8zd6VMw799XUGy9ExH+bnvZBqDC++sRFxrb4w8TgLmf 6SiCiB/wkJXylI9iFoq0E0FUt1QNR0C2PFkUoDSLiwU3Ww7dhxZUckOCzYYEKBlu/AgNrU QE2yixKf4HkNFeIIj/1wm5/M9KkuQx45AytMzNWmJaVWou5HyXM9qdVhL1Di6BrGjPgOkO fVQwttVnrTUMnValjcNNB1byUDjCzszC+p0eCa+QbagWxa5zApFRbg2mluXyBR/TIDcPVa uVbsZzagVGb/229vZU3l/g33+j0to3LzGNUTAvWtxh2XIk25vGCOoq3c7jTMFw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658376671; a=rsa-sha256; cv=none; b=O3i07ycwyQbeUrwu/IUAvV/B6hr1EBet1HROvdw/hQmz3BfE8a69kvCwykSe/GceYpcopB Ypv2+NhpGaIkq/wzpqnDOr0EZfEuDHrDmBZPjD26MyxNDhXBxFPa130PPu65kLP1Mun0U5 YexWy5/H85RRMKGFL2CJSX8Z0NTZAHfC524qBqp2hUTCtX8lHpY1JouSScuKePiwMFZMzq muTEl7B2i/TDx6u7x7wA9vPJJU9HnoooZ78dBmQ2SZKuVmWexhH4OOnmYK5i+11Sn5h1XN bYr+updE5A23Bx+scS+/cL7EW61+KbmX3EehR+GhyekuyeWVy3EOxgcI0pkHYw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=c8Ug0cnU; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 6.07 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=c8Ug0cnU; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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: 1C01B31C26 X-Spam-Score: 6.07 X-Migadu-Scanner: scn1.migadu.com X-TUID: vnUnEk1VBRmr Hi Ludovic, Ludovic Court=C3=A8s writes: > Hi! > > Maxim Cournoyer skribis: > >>> Perhaps services should allow specifying the minimum required Shepherd >>> version, which Shepherd could ensure is met before attempting to restart >>> a service, printing something like: >>> >>> 'Could not restart service X due to unmet Shepherd version requirement; >>> the service will continue unchanged until the next reboot' >>> >>> or something similar. > > 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). Thanks, Maxim