From unknown Wed Jun 18 00:24:13 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#63869 <63869@debbugs.gnu.org> To: bug#63869 <63869@debbugs.gnu.org> Subject: Status: [shepherd] `guix system reconfigure` forgets `herd disable mysrv` Reply-To: bug#63869 <63869@debbugs.gnu.org> Date: Wed, 18 Jun 2025 07:24:13 +0000 retitle 63869 [shepherd] `guix system reconfigure` forgets `herd disable my= srv` reassign 63869 guix submitter 63869 Attila Lendvai severity 63869 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 03 07:06:55 2023 Received: (at submit) by debbugs.gnu.org; 3 Jun 2023 11:06:55 +0000 Received: from localhost ([127.0.0.1]:41623 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q5P5y-0001lt-QI for submit@debbugs.gnu.org; Sat, 03 Jun 2023 07:06:55 -0400 Received: from lists.gnu.org ([209.51.188.17]:45572) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q5P5u-0001lk-7i for submit@debbugs.gnu.org; Sat, 03 Jun 2023 07:06:51 -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 1q5P5u-0007Ov-2u for bug-guix@gnu.org; Sat, 03 Jun 2023 07:06:50 -0400 Received: from mail-40136.proton.ch ([185.70.40.136]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q5P5s-0002SR-Et for bug-guix@gnu.org; Sat, 03 Jun 2023 07:06:49 -0400 Date: Sat, 03 Jun 2023 11:06:31 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lendvai.name; s=protonmail3; t=1685790406; x=1686049606; bh=V01PIaNzF2fQuOoPyHGb17KlsWHZxGKr/IbXgIefhdU=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=opP6bGxJT53ovs4uYeXutPY/HLEK32DH6NEUnoHKnexPZhxHI1HxPm0moUS64hy57 lx4+6wOMFRW8oLz6JVfX16LGw+24BsDLMAX6Q2FsXoQGlDcRZM2QJhIO5dJ0YUMuh5 d+w1FtfgOcKKVqXXzN8UH3ie1qQGpcCAnTW0+a2iGkc8vXnh9J5WOfotn34X8A8G2i oWN3nN8T26t1b+Ncr7upWTNORojhkwfHvVdH6FglpY6YmNPvP5dgfmuWZ8H3feUnqS AhZv3AcDgOZlBkaAkpMwXvLq1m2e/6BYF9DIVMfqPpzkQr+72PbAKwxbGgI8bme0Ra K2rj3eBzoJR0g== To: "bug-guix@gnu.org" From: Attila Lendvai Subject: [shepherd] `guix system reconfigure` forgets `herd disable mysrv` Message-ID: <0-BRpRybKIwoQqvJIFAqQXuRYKM-U2rlt_Gn9XVlAfxUXoNw8PHqgmoQ5qRREt_sD4UffMLKEyindAKpHdYxHb5QMq1jzybHMMq6eLnkBU4=@lendvai.name> Feedback-ID: 28384833:user:proton MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.136; envelope-from=attila@lendvai.name; helo=mail-40136.proton.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) i turn off some services using `herd disable`. then i do a `guix system rec= onfigure`, and these services get enabled and started. i would expect the enabled/disabled state to be preserved across reconfigur= es. if it's not easily feasible in the current architecture, then feel free to = close this. it's not a crucial feature. --=20 =E2=80=A2 attila lendvai =E2=80=A2 PGP: 963F 5D5F 45C7 DFCD 0A39 -- =E2=80=9CThose who do not weep, do not see.=E2=80=9D =09=E2=80=94 Victor Hugo (1802=E2=80=931885) From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 05 03:08:40 2023 Received: (at 63869) by debbugs.gnu.org; 5 Jun 2023 07:08:40 +0000 Received: from localhost ([127.0.0.1]:47894 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q64KW-0000IZ-B4 for submit@debbugs.gnu.org; Mon, 05 Jun 2023 03:08:40 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39128) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q64KU-0000IM-Gz for 63869@debbugs.gnu.org; Mon, 05 Jun 2023 03:08:39 -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 1q64KO-00089c-W2; Mon, 05 Jun 2023 03:08:33 -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=+8NXBYk/GMllMv1rXSIS26V5otQlK1A9Ry7vDe/j4LY=; b=A+m+xnRV332cCctB74hI DpZZXm0DBEvnQGPtRCypL63MS4q5ucjqrbSByX5veIBS4Kf978taMnWKEUHRQplWL3Zd+c1Q5xNwt ivx0UNPvcnx1d8ib/pV9kcxpxmdHHm7dRNo31PUBjL82ggy8o2Rw1gm4MZG3+x23tRLF6agCIyJm0 C9dKADFYjAjdqvwF9hC7gUgnTFOaIf09FsqokIubJDaR4ewtODZFML5Op70sUN9tniXfVx1dawSWu TuOr0tYdEj/bWQ57qqUWf2zK9pHOGoYf7DYsVA7vy6oi1mqn5jcjp1q4r0+df5hL0/M9c6XfMckp+ Kjm5YXdakSGfAw==; Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q64KO-00035t-Iw; Mon, 05 Jun 2023 03:08:32 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Attila Lendvai Subject: Re: bug#63869: [shepherd] `guix system reconfigure` forgets `herd disable mysrv` References: <0-BRpRybKIwoQqvJIFAqQXuRYKM-U2rlt_Gn9XVlAfxUXoNw8PHqgmoQ5qRREt_sD4UffMLKEyindAKpHdYxHb5QMq1jzybHMMq6eLnkBU4=@lendvai.name> Date: Mon, 05 Jun 2023 09:08:30 +0200 In-Reply-To: <0-BRpRybKIwoQqvJIFAqQXuRYKM-U2rlt_Gn9XVlAfxUXoNw8PHqgmoQ5qRREt_sD4UffMLKEyindAKpHdYxHb5QMq1jzybHMMq6eLnkBU4=@lendvai.name> (Attila Lendvai's message of "Sat, 03 Jun 2023 11:06:31 +0000") Message-ID: <87pm6ajsi9.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-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 63869 Cc: 63869@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Attila Lendvai skribis: > i turn off some services using `herd disable`. then i do a `guix system r= econfigure`, and these services get enabled and started. > > i would expect the enabled/disabled state to be preserved across reconfig= ures. 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 (shepherd= services)). I never thought it could be a problem. WDYT? Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 06 12:41:35 2023 Received: (at 63869) by debbugs.gnu.org; 6 Jun 2023 16:41:35 +0000 Received: from localhost ([127.0.0.1]:52902 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q6ZkV-0006SH-7D for submit@debbugs.gnu.org; Tue, 06 Jun 2023 12:41:35 -0400 Received: from mail-qk1-f173.google.com ([209.85.222.173]:49488) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q6ZkR-0006S1-Ni for 63869@debbugs.gnu.org; Tue, 06 Jun 2023 12:41:34 -0400 Received: by mail-qk1-f173.google.com with SMTP id af79cd13be357-75d13719304so535074385a.3 for <63869@debbugs.gnu.org>; Tue, 06 Jun 2023 09:41:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686069686; x=1688661686; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=U6ISsAcCYGkbdsL1VhtEmFyd7Mi9avbYKHgYZ/+d4jw=; b=nxOVcDs6luhJxasB18HgdcQxn/g75VYoG/UHZu+Rtt7vYEAf39Lx4wdrdFLtJ/ZALa mAYJnAOOenznm694ouxWLEZdvvVr327KuvU/sshKosDLnZG7onvfM/8oPR1d7VZjmN6h xzWapFX5glWWmcntxWPe3hTP530/eaOZZfoBGXv5MzePGAuxrXOapPNsINAyntFamYmi zUy/TbUrXOgyHJE4VQxI6ta/7WAe+/PR0YzyG9NviJpVUDJ+5cK+R3KfhwEGHXForift JMyeurjsEcw6fMjWiqCa7Ys3DRO23AHXRGU8WyIsaOrEpxc+d91VvyCXf+Iwr7heafnD KVrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686069686; x=1688661686; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=U6ISsAcCYGkbdsL1VhtEmFyd7Mi9avbYKHgYZ/+d4jw=; b=jYIsR2adFvZXk9/u3wgkudMiu8BngETln5KACaNKoSr17gWfObXs7bG+WFDBURtSvA yHTX1CXGQYOhiHfFzTjOa9W2y7j3CZFfO1cSwfCZ+X2/YWqSlNbBkYM4S8ZkiP/xoFwT iMmT6KCKbVMPvS/aO+W3gxcE3hrFQzUh+P9v/S/iZaFQl541Jl93yqTANxEhVH9ij+Z8 D5OzkON5DlDmAE1AZuAQZGs78g1fYzY1BKTHui+ke5QwyxP3yvfFq95OGu1gRp7NbVum YKUdIn7QeJzgT6XaGDoGBXEhauUdSl2bRHceoVRyfa3TzMvrGY3oFCF62i5jNRjop5sR TTgg== X-Gm-Message-State: AC+VfDx2sW8wavxwtohdAOg6XI/sf0qRq7uKwG63wkvhw3BMDOu+60Ro t9i9kMWFxblsUE5Nk318d8Xul3hPJvRTOg== X-Google-Smtp-Source: ACHHUZ4unAnEJN5J5j8ZA3vD6GwpjlqJNWw+Rxdl7s4prhR82mDnbE+VzVsgOVzuiG8bDXNMQ4pOXw== X-Received: by 2002:a05:620a:260a:b0:75b:23a1:422 with SMTP id z10-20020a05620a260a00b0075b23a10422mr235218qko.56.1686069685506; Tue, 06 Jun 2023 09:41:25 -0700 (PDT) Received: from hurd (dsl-10-135-116.b2b2c.ca. [72.10.135.116]) by smtp.gmail.com with ESMTPSA id x13-20020ae9e90d000000b0075ceca53e84sm4984604qkf.15.2023.06.06.09.41.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Jun 2023 09:41:25 -0700 (PDT) From: Maxim Cournoyer To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#63869: [shepherd] `guix system reconfigure` forgets `herd disable mysrv` References: <0-BRpRybKIwoQqvJIFAqQXuRYKM-U2rlt_Gn9XVlAfxUXoNw8PHqgmoQ5qRREt_sD4UffMLKEyindAKpHdYxHb5QMq1jzybHMMq6eLnkBU4=@lendvai.name> <87pm6ajsi9.fsf@gnu.org> Date: Tue, 06 Jun 2023 12:41:23 -0400 In-Reply-To: <87pm6ajsi9.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Mon, 05 Jun 2023 09:08:30 +0200") Message-ID: <87jzwgczm4.fsf@gmail.com> 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-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 63869 Cc: Attila Lendvai , 63869@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Ludovic, Ludovic Court=C3=A8s writes: > Attila Lendvai skribis: > >> i turn off some services using `herd disable`. then i do a `guix >> system reconfigure`, and these services get enabled and started. >> >> i would expect the enabled/disabled state to be preserved across reconfi= gures. > > 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 (shephe= rd 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?). 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? --=20 Thanks, Maxim From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 09 09:22:33 2023 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: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Maxim Cournoyer Subject: Re: bug#63869: [shepherd] `guix system reconfigure` forgets `herd disable mysrv` 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=A9vo?= =?utf-8?Q?lution=2C?= 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-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 63869 Cc: Attila Lendvai , 63869@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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. From debbugs-submit-bounces@debbugs.gnu.org Fri Jun 09 13:41:29 2023 Received: (at 63869) by debbugs.gnu.org; 9 Jun 2023 17:41:29 +0000 Received: from localhost ([127.0.0.1]:60296 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q7g76-00035x-RD for submit@debbugs.gnu.org; Fri, 09 Jun 2023 13:41:29 -0400 Received: from mail-qt1-f171.google.com ([209.85.160.171]:54484) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q7g74-00035k-Cj for 63869@debbugs.gnu.org; Fri, 09 Jun 2023 13:41:27 -0400 Received: by mail-qt1-f171.google.com with SMTP id d75a77b69052e-3f9a949c012so17438831cf.0 for <63869@debbugs.gnu.org>; Fri, 09 Jun 2023 10:41:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1686332480; x=1688924480; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=yvoxnkWxdrneXBxz8PEipm4kKe56s4aT0GEuJFo1eL0=; b=CE47WDY0qET8AoFqfcTma/eW6isUc0KKRraLJskBcxeNY8z0ATEEZMdxPaTa6gyaCd fFXDpN7bJihscIm8n+ULXKlSFHmlkf/Nlb48xP5ZMc7xBp6Ggo7bKWpoX+yqPct3mb16 gm7V/kNhOk34mp7h3VNp7IRX6JEJTxlYT6WoeWggS6qbSCopHdNQMeXMSOkS4NbF4Q6J M7D3nBM39CpmCjTtXNPVggDcvHG10mhSr90CHS6TrpNlS6h36iF4hD7r3d58aGIQ5WxK d0IudiLYcfK4ph1lmC+Ol669usIK2rrzS5fmhv3xch5FXwRzFpx7PTnIMWVZW1pA2nSZ uSmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686332480; x=1688924480; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=yvoxnkWxdrneXBxz8PEipm4kKe56s4aT0GEuJFo1eL0=; b=LlmGbn5B3xlaT2iLY/hKngO28m5V/+F6sp9JQxgQEb+54s5Vklx75aTz0yirMeNRoR jOa6NmmeYBsHrO1hnBiTZ5LqGgZDHvsDgpIcwm2KiZruXzscTuFgfzZ0oq0HFAM/V+lI DbmJFRkjaozLMhZaZJ/R4VJb6zUB0kb0edvCEwGd+WTDMq/SiPsppV6Po9SdJdB/45sE T6/KVIB1aJ3yP3D4Im4JoaXKT4BV0KMz8dMikaHOKQ/0pB1b1a2ujK9vyXkelNcLnSlk TtNFCyIXc7hHIj/LZpiC0SR3N81B3NKxy62/TV6xcd1FBB0WjpFFTgqN3Ccaqf5UmhEE J9aQ== X-Gm-Message-State: AC+VfDyX8AhQL0i8m1szua+sRQMGfPF+PKr9O+jnimT7fJsrUxGMEYVx dS0Tpm6JACTnHjjlSnzHVPb5lV2IwreodA== X-Google-Smtp-Source: ACHHUZ5QnDEx9dF+G+vrLg1oA0TUN7buvXx4n+TcQ8z6H5GQLiZPqakx5r8YamQGSXpio30wjVdHIQ== X-Received: by 2002:ac8:5cca:0:b0:3f6:be61:9cf7 with SMTP id s10-20020ac85cca000000b003f6be619cf7mr2202779qta.39.1686332480532; Fri, 09 Jun 2023 10:41:20 -0700 (PDT) Received: from hurd (dsl-158-203.b2b2c.ca. [66.158.158.203]) by smtp.gmail.com with ESMTPSA id fd15-20020a05622a4d0f00b003f9c6fd483esm1329844qtb.54.2023.06.09.10.41.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Jun 2023 10:41:20 -0700 (PDT) From: Maxim Cournoyer To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#63869: [shepherd] `guix system reconfigure` forgets `herd disable mysrv` References: <0-BRpRybKIwoQqvJIFAqQXuRYKM-U2rlt_Gn9XVlAfxUXoNw8PHqgmoQ5qRREt_sD4UffMLKEyindAKpHdYxHb5QMq1jzybHMMq6eLnkBU4=@lendvai.name> <87pm6ajsi9.fsf@gnu.org> <87jzwgczm4.fsf@gmail.com> <87fs70wz28.fsf@gnu.org> Date: Fri, 09 Jun 2023 13:41:18 -0400 In-Reply-To: <87fs70wz28.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Fri, 09 Jun 2023 15:22:07 +0200") Message-ID: <87a5x8bkjl.fsf@gmail.com> 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-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 63869 Cc: Attila Lendvai , 63869@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Ludovic, Ludovic Court=C3=A8s writes: > 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 (shep= herd 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? Yes! 'systemctl disable ' [0]. It does stick around until the user changes it, I can confirm the behavior which I've recently seen on a Debian system upgrade (the service remained disabled and the updater warned it wouldn't be restarted because of that). [0] https://www.freedesktop.org/software/systemd/man/systemctl.html#disabl= e%20UNIT%E2%80%A6 > 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 logi= cal. I guess sticking to the established convention set by systemd would cause the least friction down the road. If we agree on this, we should reopen this bug (and eventually fix it :-)). --=20 Thanks, Maxim From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 14 12:48:04 2023 Received: (at 63869-done) by debbugs.gnu.org; 14 Jun 2023 16:48:04 +0000 Received: from localhost ([127.0.0.1]:45365 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q9Tf9-0003mM-Qr for submit@debbugs.gnu.org; Wed, 14 Jun 2023 12:48:04 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59360) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q9Tf8-0003lG-2K for 63869-done@debbugs.gnu.org; Wed, 14 Jun 2023 12:48:02 -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 1q9Tf0-00016C-JG; Wed, 14 Jun 2023 12:47:56 -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=3vwR9s1zx0tKmrR3lp/m3QSS27HNyypSeM1E6VZ/hpk=; b=gNj3OG2YEvGpT/dqXQW1 tKB5H6AOKXjXMceJzS4qabLLuEGpDY+qFLMVorIHrBdmBqO7/DXZpbytrCCjEMOnqk4sQpVwkfd2D JYWm4wz3eyRQZ7wOjDbko6PLDP41y9H8nDvkxG8ZsCpERjF4dVID4O1snJJwMigmWa4LsLy/1VGvM Rj6tciZf3ueUpn9pKLVq6dOGqmkpqhPBQ2fMmQ/jAT8nNhFL9pxyyAab64wfsiCN+h95B+0NTDT13 fqaPcR/9xAt61UnuLCl35nlyQiaXWcmUb5UdMUvhYTTWXvU15lOu83On3V5PYaxSbz3PwcK/sm65/ 14t5msx1zraRDQ==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201] helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q9Tez-00010g-Se; Wed, 14 Jun 2023 12:47:54 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Maxim Cournoyer Subject: Re: bug#63869: [shepherd] `guix system reconfigure` forgets `herd disable mysrv` References: <0-BRpRybKIwoQqvJIFAqQXuRYKM-U2rlt_Gn9XVlAfxUXoNw8PHqgmoQ5qRREt_sD4UffMLKEyindAKpHdYxHb5QMq1jzybHMMq6eLnkBU4=@lendvai.name> <87pm6ajsi9.fsf@gnu.org> <87jzwgczm4.fsf@gmail.com> <87fs70wz28.fsf@gnu.org> <87a5x8bkjl.fsf@gmail.com> Date: Wed, 14 Jun 2023 18:47:51 +0200 In-Reply-To: <87a5x8bkjl.fsf@gmail.com> (Maxim Cournoyer's message of "Fri, 09 Jun 2023 13:41:18 -0400") Message-ID: <87fs6urnwo.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-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 63869-done Cc: Attila Lendvai , 63869-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi Maxim & Attila, 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 (she= pherd 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? > > Yes! 'systemctl disable ' [0]. It does stick around until the > user changes it, I can confirm the behavior which I've recently seen on > a Debian system upgrade (the service remained disabled and the updater > warned it wouldn't be restarted because of that). > > [0] https://www.freedesktop.org/software/systemd/man/systemctl.html#disa= ble%20UNIT%E2%80%A6 > >> 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 log= ical. > > I guess sticking to the established convention set by systemd would > cause the least friction down the road. If we agree on this, we should > reopen this bug (and eventually fix it :-)). Agreed, fixed in Shepherd commit 52db31e5b061440cd110da4848ab230ce09f365a. Thanks! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 18 21:28:13 2023 Received: (at 63869-done) by debbugs.gnu.org; 19 Jun 2023 01:28:13 +0000 Received: from localhost ([127.0.0.1]:55306 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qB3gi-0005SX-P1 for submit@debbugs.gnu.org; Sun, 18 Jun 2023 21:28:13 -0400 Received: from mail-qv1-f42.google.com ([209.85.219.42]:57816) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qB3gg-0005SL-RC for 63869-done@debbugs.gnu.org; Sun, 18 Jun 2023 21:28:11 -0400 Received: by mail-qv1-f42.google.com with SMTP id 6a1803df08f44-62ffc10180aso23157986d6.3 for <63869-done@debbugs.gnu.org>; Sun, 18 Jun 2023 18:28:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687138085; x=1689730085; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to; bh=lZGkpUSfd0mhzhLnrdsqpEH+DhQqJRFGQUZMkuOvs7Q=; b=lSXamLd1GE9MwpAMNNofGN4xPX4fOn3v1Nmt5i5oQdPQEvagf6iqR8UGRoCFcpTbPs 8rLjP4ev8+yJO1CKoj8LWcakxpYkjvuxkQefgr30bvgjGqxKw5U0+VYE7lY7GSOcpuPd WFxcEdTbV/gQGENS/zeJIHtwVGmvLPn527cIHwBLar2XzdqvPB0grVcvNxKAi3iBoP8O 7rh6CVesINFhJRws0ks4B+iPZrQq8qo+gs4SgxkdmvFFJjPzAJKUqeG+IToJjYTMD28d WuFb3hsi+t4dSG22tlw8Hw+pAV5LFb+tKfU1bzqFICB79X/TsXVZOyQ2RsAVactaU1Pz A0lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687138085; x=1689730085; h=content-transfer-encoding:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=lZGkpUSfd0mhzhLnrdsqpEH+DhQqJRFGQUZMkuOvs7Q=; b=ecViKTX/lrcRPspW9ypiY8zEgIoFXXQKPDMcg+kjrwurTumssds4LA6XEp4EO6po5d c2DtG+e8iXbZyMJA9q8R6iLhwy0wSlQYx8tzZ1beqLAOziDDwP0XpXH+Br3zOTXi/MYi KnlbDZV4RkncoZapQA2/019/OwlYIJ0XTP1k4sKeLo6LULFJTQES4LLq9B0uTeSClAbX /8vXZLCCxrdd1XF7Giw0MIwNU7H+7jBkKjzmSDBKV7M/CtnqAu3yGpuLWbUlGoS5LmhO L5MIWSVttIj+j3LM0TZCQtpP7Fm+VzLhA9DE9HCQxk8QR20tk/xAq3ILTlANKHkBfKxk Bo7g== X-Gm-Message-State: AC+VfDw0kCb0E6P5qLrxPCp+jPlPzFGt7tm7iZSTQ27zk5nC7KmtPg4t LGC19ZgLhovgU+OzuetfyWgRC6YqM0M= X-Google-Smtp-Source: ACHHUZ6jYaHETICBioafziWpSBvNksbIGzSlkJSnElra7XuPM9Usbxeh8HtpMRL68kDvnxu2le049w== X-Received: by 2002:a05:6214:29ee:b0:630:11e:fbde with SMTP id jv14-20020a05621429ee00b00630011efbdemr7900042qvb.58.1687138084988; Sun, 18 Jun 2023 18:28:04 -0700 (PDT) Received: from hurd (dsl-10-130-100.b2b2c.ca. [72.10.130.100]) by smtp.gmail.com with ESMTPSA id s3-20020a0cb303000000b0062b35b691cdsm9980932qve.93.2023.06.18.18.28.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Jun 2023 18:28:04 -0700 (PDT) From: Maxim Cournoyer To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#63869: [shepherd] `guix system reconfigure` forgets `herd disable mysrv` References: <0-BRpRybKIwoQqvJIFAqQXuRYKM-U2rlt_Gn9XVlAfxUXoNw8PHqgmoQ5qRREt_sD4UffMLKEyindAKpHdYxHb5QMq1jzybHMMq6eLnkBU4=@lendvai.name> <87pm6ajsi9.fsf@gnu.org> <87jzwgczm4.fsf@gmail.com> <87fs70wz28.fsf@gnu.org> <87a5x8bkjl.fsf@gmail.com> <87fs6urnwo.fsf@gnu.org> Date: Sun, 18 Jun 2023 21:28:03 -0400 In-Reply-To: <87fs6urnwo.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Wed, 14 Jun 2023 18:47:51 +0200") Message-ID: <87a5wwtf4s.fsf@gmail.com> 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-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 63869-done Cc: Attila Lendvai , 63869-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi, Ludovic Court=C3=A8s writes: > Hi Maxim & Attila, > > Maxim Cournoyer skribis: > >> Ludovic Court=C3=A8s writes: > > [...] > >>>>> When a service is stopped at the time of reconfigure, it is immediate= ly >>>>> replaced and then started. >>>>> >>>>> Replacing works by unregistering the old instance from the registry a= nd >>>>> 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 (sh= epherd services)). >>>>> >>>>> I never thought it could be a problem. WDYT? >>>> >>>> I think it probably goes against users' expectation (i.e., systemd) th= at >>>> 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? >> >> Yes! 'systemctl disable ' [0]. It does stick around until the >> user changes it, I can confirm the behavior which I've recently seen on >> a Debian system upgrade (the service remained disabled and the updater >> warned it wouldn't be restarted because of that). >> >> [0] https://www.freedesktop.org/software/systemd/man/systemctl.html#dis= able%20UNIT%E2%80%A6 >> >>> 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 lo= gical. >> >> I guess sticking to the established convention set by systemd would >> cause the least friction down the road. If we agree on this, we should >> reopen this bug (and eventually fix it :-)). > > Agreed, fixed in Shepherd commit > 52db31e5b061440cd110da4848ab230ce09f365a. Nifty! You rock! :-) --=20 Thanks, Maxim From unknown Wed Jun 18 00:24:13 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 17 Jul 2023 11:24:11 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator