From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#22039: [PATCH] 'guix system reconfigure' must start/restart/stop services Date: Sat, 01 Sep 2018 12:49:37 +0200 Message-ID: <87sh2tijb2.fsf@gnu.org> References: <874mg6rsjl.fsf@gnu.org> <87tvnhxr20.fsf@zancanaro.id.au> 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]:47393) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fw3Ue-00043K-Oz for bug-guix@gnu.org; Sat, 01 Sep 2018 06:51:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fw3Te-0005Gf-Uz for bug-guix@gnu.org; Sat, 01 Sep 2018 06:50:03 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:36224) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fw3Te-0005GV-Qw for bug-guix@gnu.org; Sat, 01 Sep 2018 06:50:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fw3Te-0003KJ-MI for bug-guix@gnu.org; Sat, 01 Sep 2018 06:50:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87tvnhxr20.fsf@zancanaro.id.au> (Carlo Zancanaro's message of "Sun, 26 Aug 2018 22:15:03 +1000") 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" To: Carlo Zancanaro Cc: 22039@debbugs.gnu.org Hi Carlo, Carlo Zancanaro skribis: > When the next release of the Shepherd is made (including commit > 9ec5c0000e9a45441417a6ee4138cdcbf1b1f2b2) we should have the > capability to resolve this ticket. Woohoo! I=E2=80=99d like to make sure we understand the story with =E2=80=98EINTR-s= afe=E2=80=99, but after that I=E2=80=99m happy to push a release. > Attached is my proposed patch from the Guix side. I have tested it on > my machine by grafting the Shepherd with the appropriate patch and it > seems to work as expected. > > I tested it by changing the substitute-urls in my guix-daemon > configuration. The output of `ps aux | grep guix-daemon` after `guix > system reconfigure` showed the substitute-urls were unchanged. After > `herd restart guix-daemon` the updated substitute-urls appeared in `ps > aux | grep guix-daemon`. I did not need to reboot my system. Perfect. > One possible improvement would be to print out the services that need > to be restarted to be upgraded. Yes, that=E2=80=99d be nice. > From 162bd298563201ebf6eda87d46ae1b64671397da Mon Sep 17 00:00:00 2001 > From: Carlo Zancanaro > Date: Sun, 26 Aug 2018 21:54:14 +1000 > Subject: [PATCH] gnu: services: Load all services on reconfigure, not just > stopped ones > > * gnu/services/shepherd.scm (shepherd-service-upgrade): Remove checks for > running services. Could you adjust the manual, where it currently says =E2=80=9Cif a service = is currently running, it does not attempt to upgrade it=E2=80=9D? Other than that LGTM! Ludo=E2=80=99.