From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#22039: 'guix system reconfigure' must start/restart/stop services Date: Wed, 03 Feb 2016 22:32:10 +0100 Message-ID: <87h9hp7a5h.fsf@gnu.org> References: <874mg6rsjl.fsf@gnu.org> 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]:49833) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aR52v-0005qK-Ss for bug-guix@gnu.org; Wed, 03 Feb 2016 16:33:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aR52s-0002lE-Mt for bug-guix@gnu.org; Wed, 03 Feb 2016 16:33:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:49873) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aR52s-0002lA-JJ for bug-guix@gnu.org; Wed, 03 Feb 2016 16:33:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aR52s-0000sC-CK for bug-guix@gnu.org; Wed, 03 Feb 2016 16:33:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <874mg6rsjl.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Sat, 28 Nov 2015 17:35:10 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: 22039@debbugs.gnu.org ludo@gnu.org (Ludovic Court=C3=A8s) skribis: > Currently =E2=80=98guix system reconfigure=E2=80=99 doesn=E2=80=99t try t= o dynamically update > the set of running services, which is a shame. > > A simple strategy would be to have it: > > 1. Stop and unregister services currently known to dmd that are > missing in the new configuration. > > 2. Load and start (if they have =E2=80=98auto-start?=E2=80=99) services= that are in > the new configuration and currently unknown to dmd. > > 3. The rest is the most difficult part: dealing with services that > already exist but that have changed (see below.) Commit 240b57f implements #1 and #2. Ludo=E2=80=99.