From debbugs-submit-bounces@debbugs.gnu.org Fri Apr 15 11:59:25 2022 Received: (at 54545-done) by debbugs.gnu.org; 15 Apr 2022 15:59:26 +0000 Received: from localhost ([127.0.0.1]:60152 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nfOM1-000204-Kb for submit@debbugs.gnu.org; Fri, 15 Apr 2022 11:59:25 -0400 Received: from eggs.gnu.org ([209.51.188.92]:41294) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nfOLz-0001zp-OQ for 54545-done@debbugs.gnu.org; Fri, 15 Apr 2022 11:59:24 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:57990) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nfOLt-0001pR-Ea; Fri, 15 Apr 2022 11:59:17 -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=I+4jaenbxPSGeemLKw5NoLO5XOz9xbFcyNV8eICCPhk=; b=iMl7KQKyK7dMwFJpDEQT gOSGx6jzWGS6bxq25lX/TqD7ynC8DqEBv/0nBUe4mrsC6mB8RwtrgvnTzfkin9Dc8oE2cSb83lFRB HdyZyaBFTwSfFn2M7TzfXueDCtTh6JBY2J1cLAlYWDmbRH0kLpuOjdpdb13OtIpb7azaxnLqWdLlM W42DGmRWxaS0uYV5b4DlyMuKIKJ8DOuJfj8bRHDh9CDpMNjX827TzoYmykCk4ryfXkPtf1H9ETJy7 GqqJo0EBbUHQdPyQH5wRuLnT0p/Ry2EsUzd+omrsXRKYzMAgoDLGne1WXN34s1RPnPupL7zwkhjbt 4oXbFE06iA0l9A==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:52588 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nfOLs-0000I5-Co; Fri, 15 Apr 2022 11:59:17 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Andrew Tropin Subject: Re: bug#54545: [Guix Home] =?utf-8?B?4oCYc2hlcGhlcmTigJk=?= started twice? References: <87a6dfbfdl.fsf@inria.fr> <87sfqt2vwd.fsf@trop.in> <871qyctxhk.fsf@gnu.org> <871qy2irc4.fsf@trop.in> <87czhmcg26.fsf@gnu.org> <87y209jye4.fsf@trop.in> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 26 Germinal an 230 de la =?utf-8?Q?R=C3=A9volution?= 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, 15 Apr 2022 17:59:14 +0200 In-Reply-To: <87y209jye4.fsf@trop.in> (Andrew Tropin's message of "Wed, 13 Apr 2022 09:22:27 +0300") Message-ID: <87h76u49t9.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.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: 54545-done Cc: 54545-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, Andrew Tropin skribis: [...] > for example I can't find info about > Fixes line even with search That part is not written (yet!), but you=E2=80=99ve had the opportunity to = look at the Git log I guess. :-) >>> From 56d16b4cd511f6837329b888dade0c6d6da4d89d Mon Sep 17 00:00:00 2001 >>> From: Andrew Tropin >>> Date: Tue, 12 Apr 2022 12:19:50 +0300 >>> Subject: [PATCH 2/3] home: shepherd: Use run-on-change to reload shephe= rd >>> config. >>> >>> * gnu/home/services/shepherd.scm: Add shepherd configuration to >>> XDG_CONFIG_HOME and use it instead of full path to the store. It's nece= ssary >>> to use run-on-change service. [...] >> How does this relate to the bug at hand? >> >> https://issues.guix.gnu.org/54545 >> > > Almost directly. > > During activation if there is no shepherd process we tried to launch a > new one, which was useful back in the days, when I was testing changes > frequently, but can be kinda unexpected for user, if they stopped > Shepherd for some reason, but during activation it started again > automatically. As we discussed earlier: > >>>> Probably we need to do config reload using on-change service and also >>>> not trigger on-change stuff if user isn't logged in. > >>> Makes sense. > > it would be nice to reload configuration only if it's changed. To make > run-on-change work we need to store a config somewhere in > home-environment, to make it possible to compare with previous > generation. files/.config/shepherd/init.scm looks like a good match > here, in addition to on-change functionality it increases explorability. Hmm let=E2=80=99s not invent some new fancy way to update Shepherd services= and instead use what we already have for Guix System. I=E2=80=99m closing this issue; please open a new one if there=E2=80=99s mo= re to discuss! Thanks, Ludo=E2=80=99.