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 ms9.migadu.com with LMTPS id 4GxwOOlhf2TZXAEASxT56A (envelope-from ) for ; Tue, 06 Jun 2023 18:42:17 +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 SE+AOOlhf2RvLgEAauVa8A (envelope-from ) for ; Tue, 06 Jun 2023 18:42:17 +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 9B3143BB5B for ; Tue, 6 Jun 2023 18:42:17 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q6Zkx-0004qp-GZ; Tue, 06 Jun 2023 12:42: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 1q6Zkw-0004qg-MA for bug-guix@gnu.org; Tue, 06 Jun 2023 12:42: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 1q6Zkw-0007st-Dv for bug-guix@gnu.org; Tue, 06 Jun 2023 12:42:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q6Zkv-0006T7-R0 for bug-guix@gnu.org; Tue, 06 Jun 2023 12:42:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#63869: [shepherd] `guix system reconfigure` forgets `herd disable mysrv` Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 06 Jun 2023 16:42: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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: Attila Lendvai , 63869@debbugs.gnu.org Received: via spool by 63869-submit@debbugs.gnu.org id=B63869.168606969524821 (code B ref 63869); Tue, 06 Jun 2023 16:42:01 +0000 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 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?="'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-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=1686069737; a=rsa-sha256; cv=none; b=Dz2n9Qs2/kZXdZn+HXidASRSx6w+NAcYEUJ9O4QNHNqtMEvRMJMq6/doafr/yIHBXMPsNi Wsxyfdi9YJd/4SKK3QtpcGo4MYGLR1ttt/2s7IuBbqSAuNJrZBATiW0g/ANNsT2XQu/k7U N1AaZphVUJvxol75WAZaqMHngYaTBlQAfj1BawVfjlT53Do7Y/z2NTxsct6QZtAWQu/ES/ /DsE+OgKpKfkvb4OjxEsd507KGicMX0DURXsfmJsWgEZyfZz0QmjXFWp+9udZIahI6yRf3 T7KWlbbWVb1zIAh1fGz6HdvwAEqs22X/6OVzaEbA/stYBefc+xcG1I+9fbgMlA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=nxOVcDs6; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1686069737; 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=U6ISsAcCYGkbdsL1VhtEmFyd7Mi9avbYKHgYZ/+d4jw=; b=V8PnnQAGh866NKkIVy58T3fiHh4bqSwyNbhfg7ebKGo/jeneozOaoKAUKrAbPxqcFNueDO inlVK1aykKknAt/mNK+pnsDRJNKfJ28+skegn9VQEm8+rowEr/txRGW3m7flHkDPtRjiWx eVUsG6u+hsK9kkgOusaSRNbIkpAVIEdyo7fGvpT8NsxS4aR6o5wMTWHcVicdX0TmEYbvg9 692Rd8OnBGtO/HqrXDxcn0AxSSKj++gpP51CkE8HNVKyVSALiCOi+yuob5fl93+hyt2+Ry 3muZodxMBK7oINyCd24Pn63yhb+0OGlQvFwoDThWfdZePzQY3WrgO7v2HnVEBA== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=nxOVcDs6; 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-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -3.69 X-Spam-Score: -3.69 X-Migadu-Queue-Id: 9B3143BB5B X-TUID: eGtW2ESJJBaB 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