From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#36517: 'guix deploy' does not restart services Date: Fri, 12 Jul 2019 22:43:22 +0200 Message-ID: <87v9w7dlw5.fsf@gnu.org> References: <87pnmof4lf.fsf@sdf.lonestar.org> <878st4vb74.fsf@gnu.org> <874l3sqz7n.fsf@sdf.lonestar.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:470:142:3::10]:37033) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hm2Om-0007pt-1N for bug-guix@gnu.org; Fri, 12 Jul 2019 16:44:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hm2Oj-0006YK-RU for bug-guix@gnu.org; Fri, 12 Jul 2019 16:44:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:60204) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hm2Of-0006Ro-QS for bug-guix@gnu.org; Fri, 12 Jul 2019 16:44:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hm2Of-0004l4-MF for bug-guix@gnu.org; Fri, 12 Jul 2019 16:44:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <874l3sqz7n.fsf@sdf.lonestar.org> (Jakob L. Kreuze's message of "Thu, 11 Jul 2019 13:05:00 -0400") 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: "Jakob L. Kreuze" Cc: 36517@debbugs.gnu.org Howdy! zerodaysfordays@sdf.lonestar.org (Jakob L. Kreuze) skribis: > Ludovic Court=C3=A8s writes: > >> Hi, >> >> zerodaysfordays@sdf.lonestar.org (Jakob L. Kreuze) skribis: >> >>> This issue is described in more detail at [1]. Essentially, 'guix >>> deploy' is will happily load and start new services, as well as unload >>> obsolete services, but does nothing to restart valid services that are >>> already running. >> >> That=E2=80=99s not a bug: =E2=80=98guix system reconfigure=E2=80=99 does= not restart already >> running services, simply because it cannot tell whether now is a good >> time to restart them. It=E2=80=99s a decision that=E2=80=99s left to th= e system >> administrator. >> >> However, note that =E2=80=98guix system reconfigure=E2=80=99 loads =E2= =80=9Creplacements=E2=80=9D for >> each Shepherd service, such that next time you run =E2=80=98herd restart= FOO=E2=80=99, >> you spawn that new version of FOO. >> >> Does that make sense? > > Yes, that does make sense. I suppose the way I worded the initial report > wasn't great; I opened this to track support for 'restart-strategy' as > described in #33508 in 'guix deploy'. This takes care of the question of > when a good time to restart the service would be. Oh, I see. To me that=E2=80=99s completely orthogonal to =E2=80=98guix dep= loy=E2=80=99 though, in that =E2=80=98guix system reconfigure=E2=80=99 and =E2=80=98guix deploy= =E2=80=99 should use the same code for that. Thanks, Ludo=E2=80=99.