From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id KEw1OH1kg2QeqAAASxT56A (envelope-from ) for ; Fri, 09 Jun 2023 19:42:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id gPVHOH1kg2QeQwAA9RJhRA (envelope-from ) for ; Fri, 09 Jun 2023 19:42:21 +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 94BBF881B for ; Fri, 9 Jun 2023 19:42:21 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q7g7j-0007HG-T7; Fri, 09 Jun 2023 13:42:07 -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 1q7g7e-0007Gy-Qe for bug-guix@gnu.org; Fri, 09 Jun 2023 13: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 1q7g7e-00089b-2f for bug-guix@gnu.org; Fri, 09 Jun 2023 13:42:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q7g7d-00036n-LJ for bug-guix@gnu.org; Fri, 09 Jun 2023 13: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: Fri, 09 Jun 2023 17: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.168633248911906 (code B ref 63869); Fri, 09 Jun 2023 17:42:01 +0000 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 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?="'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-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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1686332541; 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=yvoxnkWxdrneXBxz8PEipm4kKe56s4aT0GEuJFo1eL0=; b=k/3WAlB156jw4E9D8ZpQg+aIMJmhm9zkM3SfrBgnopW+8V4ARut6jWfSIBc+hYm1iiWQAS 66gpsc85rZtbjq0++9lQvZCHwuxX4/oQSRol2NJWP99imxg6nYD26CMm4jcjvGt5+JYxpZ yV5QwX9kTLWmfsgHFAAfDRhsea1RJBR8Z9/33MJn8Ui4oJfacIY9nfpV61Myl21x3Etbq9 wI6iUUzCkibY4BFJlv6Yds9V9g7cLTCAhDc4phRVXJWvLOUrafLpN1OVoK8OytIdDhnJLr 8Z/T1NC08xktfCd9aQFkSPxqGjEgGuNPeVTGflTfgFC3UtpelJl7Jg++EkLbkQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=CE47WDY0; 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-Seal: i=1; s=key1; d=yhetil.org; t=1686332541; a=rsa-sha256; cv=none; b=ggVs+wyvVdLFjhVP7XYV4gX0aq5y1VgGz6JLk9/FiOABDVgy2a+pQ4Ftvmg4PQ2Psqd8gE Vp7YtyL2ysFHeR/n7EGtmfYe9Hn1VJfzlJoGwAGMo0cXB/sC5GYfcFkDnaPT1rAbHONPPh kchm9Fa6QlLhZ4Ghn2oPNZg2Gc1Pyti/fqPiVh2so1sHAGQnJHi1+8NA/xgeDVIZxkG7TE gf4MJtdAki7EXr2zqXzdLfU/sYgPsfSa2wbkZF4k4NUEupGAaybzlP/6xEA66B6WnJvhS9 FmwRMdEs0zXKoH2SblYquiwEIjJHHPB1VGcQ9VJ78efa6FRME8qSYzAZa9GwHA== X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -2.11 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=CE47WDY0; 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: 94BBF881B X-Spam-Score: -2.11 X-TUID: sC6dyXC6ypmc 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