From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: =?utf-8?Q?=E2=80=98guix?= system =?utf-8?Q?reconfigure=E2=80=99?= does not always load new services Date: Sat, 13 Jan 2018 22:05:07 +0100 Message-ID: <87inc5mpvg.fsf_-_@gnu.org> References: <20180110195028.6tzw5q2xrzcykszj@abyayala> <20180112100804.5ehccls753pl7lku@abyayala> <87inc5onoj.fsf@gnu.org> <20180113151449.aku3ps2p32eqflpy@abyayala> <20180113152129.hpvov5t4tc24233d@abyayala> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60099) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eaSzK-0006GA-CN for guix-devel@gnu.org; Sat, 13 Jan 2018 16:05:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eaSzH-0002vn-8K for guix-devel@gnu.org; Sat, 13 Jan 2018 16:05:14 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:40016) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eaSzH-0002sw-2k for guix-devel@gnu.org; Sat, 13 Jan 2018 16:05:11 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id ACF2910A73 for ; Sat, 13 Jan 2018 22:05:09 +0100 (CET) Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fso385PnwZcX for ; Sat, 13 Jan 2018 22:05:08 +0100 (CET) Received: from ribbon (unknown [IPv6:2a01:e0a:1d:7270:af76:b9b:ca24:c465]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 13B8610A6A for ; Sat, 13 Jan 2018 22:05:07 +0100 (CET) In-Reply-To: <20180113152129.hpvov5t4tc24233d@abyayala> (ng0@n0.is's message of "Sat, 13 Jan 2018 15:21:29 +0000") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org Hello, ng0 skribis: > I noticed a `herd restart guix-daemon` after reconfigure wasn't > enough, I had to reboot to make use of the new guix. Could this > be improved? Yes, that=E2=80=99s a problem (Andreas also reported it to me a couple of d= ays ago.) The problem is that =E2=80=98guix system reconfigure=E2=80=99 reloads and r= estarts services that were not currently running. For other services, such as guix-daemon, it does nothing=E2=80=94it does not even load the new version. This is because the Shepherd currently doesn=E2=80=99t offer a way to =E2= =80=9Chot-swap=E2=80=9D services without stopping them. Instead it first unloads the service, loads the new one, and (optionally) starts it. See (gnu services herd). So what we would need is to somehow overwrite the current service. The problem is that it may be incorrect, for instance because we=E2=80=99d like= to use the =E2=80=98stop=E2=80=99 action of the previous service when we event= ually stop it, rather than the new =E2=80=98stop=E2=80=99 action. So perhaps we shoul= d register the new service so that it replaces the old one only when the old one is stopped. Thoughts? Ludo=E2=80=99.