From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id oN1xH3E7g2T+NwAASxT56A (envelope-from ) for ; Fri, 09 Jun 2023 16:47:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id QBlBH3E7g2Q/cQAAauVa8A (envelope-from ) for ; Fri, 09 Jun 2023 16:47:13 +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 328061C41A for ; Fri, 9 Jun 2023 16:47:13 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q7c51-0007ua-Mv; Fri, 09 Jun 2023 09:23:03 -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 1q7c50-0007uQ-PL for bug-guix@gnu.org; Fri, 09 Jun 2023 09:23: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 1q7c50-0000cr-GA for bug-guix@gnu.org; Fri, 09 Jun 2023 09:23:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q7c4z-0001bR-Sx for bug-guix@gnu.org; Fri, 09 Jun 2023 09:23:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#63869: [shepherd] `guix system reconfigure` forgets `herd disable mysrv` Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 09 Jun 2023 13:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63869 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Maxim Cournoyer Cc: Attila Lendvai , 63869@debbugs.gnu.org Received: via spool by 63869-submit@debbugs.gnu.org id=B63869.16863169536109 (code B ref 63869); Fri, 09 Jun 2023 13:23:01 +0000 Received: (at 63869) by debbugs.gnu.org; 9 Jun 2023 13:22:33 +0000 Received: from localhost ([127.0.0.1]:58600 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q7c4W-0001aS-W9 for submit@debbugs.gnu.org; Fri, 09 Jun 2023 09:22:33 -0400 Received: from eggs.gnu.org ([209.51.188.92]:35780) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q7c4U-0001aG-M0 for 63869@debbugs.gnu.org; Fri, 09 Jun 2023 09:22:31 -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 1q7c4O-0000b0-WB; Fri, 09 Jun 2023 09:22:25 -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=kNGTtGqQHnjfiU1jpn9coyyDNwuLgKTLR9GkixWqPiU=; b=ZSuwJXwbRIhRCCrOCXt1 TMLtKEUtOTZIxST71DqP2TqOMLGyUFoJyoCHrxGU2DKMOP1epYfYt+QMX2uwXOzUMHxomD7b8oNeV HjWpYWCbDggm7PaWpzi6MP1MDwL75QIZGI+5e8dPTKD4VAlgolLsD7SnNJEmFWOvXcuMrtR+p4+SV DAZy0NwW3/reK+f6Ru3zV/cY2sMF51Wymkh9zvOv6y8JzfYmqYkDMeGTGJgK6ygLXCzGQrTxsCQ9A CPVuG6+6lAuUI54WGbfo7VK/HZI+o0shCKoA1p/eBu/1DrDTCTYCn4BrY0j5q93ujbaOMNY8cqltj mNiM/o6LR/f2kA==; Received: from [193.50.110.239] (helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q7c49-0000oL-6T; Fri, 09 Jun 2023 09:22:23 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <0-BRpRybKIwoQqvJIFAqQXuRYKM-U2rlt_Gn9XVlAfxUXoNw8PHqgmoQ5qRREt_sD4UffMLKEyindAKpHdYxHb5QMq1jzybHMMq6eLnkBU4=@lendvai.name> <87pm6ajsi9.fsf@gnu.org> <87jzwgczm4.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Primidi 21 Prairial an 231 de la =?UTF-8?Q?R=C3=A9volution, ?= jour du Barbeau 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: Fri, 09 Jun 2023 15:22:07 +0200 In-Reply-To: <87jzwgczm4.fsf@gmail.com> (Maxim Cournoyer's message of "Tue, 06 Jun 2023 12:41:23 -0400") Message-ID: <87fs70wz28.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 ARC-Seal: i=1; s=key1; d=yhetil.org; t=1686322033; a=rsa-sha256; cv=none; b=Aob20OS9+owC+E6SWsWIWy3ueCkz3l9wvxxbvubAtKCv85qOYSX3DeQITBNM1/kIwBOXd4 Y4+ma4zhCGZqFpXOShEQB5Sv+X6f2BjFMu3/RRIMdKwZW+4PigmyM1PjK5WIIc8OqitKcO JlJAQTycks12X1qtttHr7cGY0D+Rmp3MVBy4XqsUH0X5o7ajE9WX0SqPSCySDuWxgnz5ID +uNbCbytzfYe2J7r8H3gl3iecQwMXqseOyACbhtxDHqnFHj4VlY3sgcRXNhDvqrBZBfizT 5XVwa6ZFuyAaSHI+oDYN3l9eje/9vT7NxrKQhLLyNEyJi++TpgTcS3mnvm5zrw== 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=ZSuwJXwb; 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=1686322033; 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=kNGTtGqQHnjfiU1jpn9coyyDNwuLgKTLR9GkixWqPiU=; b=m8ISukTMlJENasEVwA0d3IurBbMD3Y8pyyzmbPktSok5WysUfQFkVSA7amYDG9aR52e5zj UnMeyYkscXG3xNGLU3o2GakNWjbhRRD5pja73IOOgPodRSpPZ5Iehc6oLfnVqdMuBe0sVm 9K5LkbnL3py0Z2u6eKoYs9PamCDTER8UVOgNKprgoYfm+TtGQHLW51WnwTNZI+WvCaYjkA MczrA8TfVnpqCDGantUKo05l2Lp8JsInIz13GQg6ErS9QNaPZVyIZb/8qfy14DKTOJYZYg 7vhiaIj7dL/92VQ+jS7NRBz6pgyFD8ATvphT39wCJPkfH+tbBNu209JQfX6RJQ== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=ZSuwJXwb; 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-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -5.01 X-Spam-Score: -5.01 X-Migadu-Queue-Id: 328061C41A X-TUID: otTX5IAXC9eb Hi, Maxim Cournoyer skribis: > Ludovic Court=C3=A8s writes: [...] >> When a service is stopped at the time of reconfigure, it is immediately >> replaced and then started. >> >> Replacing works by unregistering the old instance from the registry and >> registering a new one. As a side effect, you end up with an instance >> that=E2=80=99s enabled (see =E2=80=98service-registry=E2=80=99 in (sheph= erd services)). >> >> I never thought it could be a problem. WDYT? > > I think it probably goes against users' expectation (i.e., systemd) that > a disabled service stays disabled unless manually re-enabled (I think > that's the way it is for systemd, even when the system is upgraded?). Does systemd have a notion of enabled/disabled? > If we want Guix/Shepherd to differ from this common expectation (on the > ground that declarative should prevail over state, maybe?), it'd be good > to have at least this documented/explained somewhere. > > What do you think? I=E2=80=99m fine either way. We can also change it such that replacing a disabled service does not re-enable it; that=E2=80=99s probably more logica= l. Thoughts? Ludo=E2=80=99.