From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id eCiKERC5EGNyFQAAbAwnHQ (envelope-from ) for ; Thu, 01 Sep 2022 15:52:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id IFmtEBC5EGMI6gAAG6o9tA (envelope-from ) for ; Thu, 01 Sep 2022 15:52:16 +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 C0F50E9B for ; Thu, 1 Sep 2022 15:52:09 +0200 (CEST) Received: from localhost ([::1]:43898 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oTkc4-0006uE-Q1 for larch@yhetil.org; Thu, 01 Sep 2022 09:52:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36358) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTkby-0006sM-Mp for bug-guix@gnu.org; Thu, 01 Sep 2022 09:52:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:51914) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oTkby-00081s-EY for bug-guix@gnu.org; Thu, 01 Sep 2022 09:52:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oTkby-0001ji-7I for bug-guix@gnu.org; Thu, 01 Sep 2022 09:52:02 -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: Thu, 01 Sep 2022 13:52: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: Maxim Cournoyer Cc: Maxime Devos , 55898@debbugs.gnu.org Received: via spool by 55898-submit@debbugs.gnu.org id=B55898.16620403026647 (code B ref 55898); Thu, 01 Sep 2022 13:52:02 +0000 Received: (at 55898) by debbugs.gnu.org; 1 Sep 2022 13:51:42 +0000 Received: from localhost ([127.0.0.1]:41663 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTkbd-0001j9-Sd for submit@debbugs.gnu.org; Thu, 01 Sep 2022 09:51:42 -0400 Received: from eggs.gnu.org ([209.51.188.92]:58042) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oTkbc-0001iv-2h for 55898@debbugs.gnu.org; Thu, 01 Sep 2022 09:51:40 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:52490) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTkbW-0007zJ-Am; Thu, 01 Sep 2022 09:51:34 -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=D5Zen6tSvJFnNYnNd+ifTYfYMzlgv7Wkhw+9kmriALA=; b=dM9Oumn+zqMEgkdlkVcw Kj4wX20A0po+/E/cHZYPVwQ2JMlht4XnC+2ZGk2xGgd9MY2Zgu88FefzQiXot8lxT1/+q40mkDcYj s+IVtYEVuh2YQJNvdCM2vu1KSP3xhgoxB6AxM0KcodH+iN9wnSwKuNl68ywtRk+Jh876jjBfeKf9/ y1uG6n8wqZ4Z/l2IcaFsOI3HPv0Ml/uUzkAZ8ZhX2bIGEX2XxEr88DLxo6eT0H/ixz7k0hg4NUIbU A/80tDeaWlT2rlX+Zfg8JAbUxt282ufoklzXUpqxoRygh9+i3Fbp25fOrs22HmNGQCjGSwIX1CHDb sFbY0quhQQcV7A==; Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=43860 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oTkbV-0004N9-OA; Thu, 01 Sep 2022 09:51:34 -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> <87y1v75fo0.fsf@gnu.org> <8735debvz7.fsf@gmail.com> <878rn6423p.fsf@gnu.org> <87tu5r8c8m.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Quintidi 15 Fructidor an 230 de la =?UTF-8?Q?R=C3=A9volution, ?= jour de la Truite X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 01 Sep 2022 15:51:31 +0200 In-Reply-To: <87tu5r8c8m.fsf@gmail.com> (Maxim Cournoyer's message of "Thu, 01 Sep 2022 09:18:01 -0400") Message-ID: <87fshb2of0.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=1662040330; 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=D5Zen6tSvJFnNYnNd+ifTYfYMzlgv7Wkhw+9kmriALA=; b=DtuxnuoUCoazp06AL2SmP3kF3yXbgyxU7guIB3MCsIOTrhkZCdOE9MLjs+R3nxQK0c371/ v3JUCmQgZVdUkkmsmUAgZbtjw02IUoKGFXBJN15964oqg2E58ejyRZnUxf8PygMUyGD7Xj PZWC0eaBMms8Mhj8rSOME+ZxXy699Z6Daywb3OQ5lG3TclR5dNdC3BIGf1YXyVekUTpaZn KCnQ/CgYtLyBvICNXv5wwR7ew8PW2kIOgLNcErAmWQWCAOMGy1uCjqBxXnfe5lfFsCkI0M /l/XUaJSq7DLWiOwdVsHAeW5vvXmaU3mLE7TP/O8pjnrwgp4q7i156N8ok7OnA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1662040330; a=rsa-sha256; cv=none; b=Bf0hypDqQ843F81j18E2FoStQC1/fVENf+1ui7nb7Pb930NYSf69j1wYaw0e6HDeX/CfRL Eg7+jYAfknj6BK3qb0sNX5+Wt30UloBUbLjUhDg3hMMEIb3Qua2yFDLWieEtkvOL2zqlem U+yl7Mr3kkf71H3CCSkwLvpPoUjMHNtQ8ruLGSbZ6NSr+zwIPJkj37HlxX0QNURH0F9IFG 6qnaEml0kJ/kaQY2x8stmulwRz02MyTqRQAwmhlkUHsvvsawQr/29jaV/x7rnvSILZiXwW 0T7RfRe64YGGtRzIrIleUYXkzPIUn+JOficDvdIj8QLkj1ryoI6X/R29rUpHag== 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=dM9Oumn+; 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: -3.67 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=dM9Oumn+; 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: C0F50E9B X-Spam-Score: -3.67 X-Migadu-Scanner: scn1.migadu.com X-TUID: XRt2AcUrnh/d Howdy! Maxim Cournoyer skribis: > I had something different on mind; I was thinking of some added field to > our shepherd-service object where the minimal version of Shepherd > required could be specified, e.g. "0.9.1". > > The check could be abstracted in the shepherd-service implementation, > avoiding services writers to handle that by themselves in *each* service > requiring so. Hmm I see. > The benefit would be an improved user experience, and cleaner service > code. Upon reconfiguring a machine not yet equipped with a new enough > Shepherd, Shepherd could print: > > The x, y and z services won't be started until the next reboot, as they > require a newer Shepherd version. > > Instead of seeing the new services fail to run without (for the end > user) without any obvious reason. Currently, new services don=E2=80=99t fail to run: we arrange so that new services always =E2=80=9Cwork=E2=80=9D, whether they=E2=80=99re talking to = an old shepherd or a new one. The user experience (bugs aside) should be good: services are always reloaded. IIUC, in the model you propose, we=E2=80=99d sacrifice this, by admitting t= hat in some cases we just won=E2=80=99t load services live and instead tell use= rs to reboot; the benefit would be cleaner service code. It=E2=80=99s a tradeoff; the cost/benefit ratio is not obvious to me. Thanks for explaining! Ludo=E2=80=99.