From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 23 15:54:01 2018 Received: (at 22039) by debbugs.gnu.org; 23 Sep 2018 19:54:01 +0000 Received: from localhost ([127.0.0.1]:51089 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g4AS9-0006Pb-29 for submit@debbugs.gnu.org; Sun, 23 Sep 2018 15:54:01 -0400 Received: from eggs.gnu.org ([208.118.235.92]:45850) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g4AS7-0006PP-Aq for 22039@debbugs.gnu.org; Sun, 23 Sep 2018 15:53:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g4AS1-0004es-4x for 22039@debbugs.gnu.org; Sun, 23 Sep 2018 15:53:54 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48515) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g4AS0-0004dt-Iy; Sun, 23 Sep 2018 15:53:52 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=38664 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1g4AS0-0004wH-B7; Sun, 23 Sep 2018 15:53:52 -0400 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Efraim Flashner Subject: Re: bug#22039: [PATCH] 'guix system reconfigure' must start/restart/stop services References: <87va7pza4p.fsf@zancanaro.id.au> <87tvn9b0qh.fsf@gnu.org> <87tvn8d0n7.fsf@zancanaro.id.au> <87lg7xh4l0.fsf@gnu.org> <871s9pfbpg.fsf@zancanaro.id.au> <87efdowleu.fsf@gnu.org> <87tvmkqxe7.fsf@zancanaro.id.au> <87efdov32l.fsf@gnu.org> <87sh24qtes.fsf@zancanaro.id.au> <87r2hn2hbo.fsf@gnu.org> <20180923082613.GA1226@macbook41> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 2 =?utf-8?Q?Vend=C3=A9miaire?= an 227 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: Sun, 23 Sep 2018 21:53:51 +0200 In-Reply-To: <20180923082613.GA1226@macbook41> (Efraim Flashner's message of "Sun, 23 Sep 2018 11:26:13 +0300") Message-ID: <87lg7srnw0.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 22039 Cc: Carlo Zancanaro , 22039@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: -6.0 (------) Hi, Efraim Flashner skribis: > On Fri, Sep 21, 2018 at 01:58:03PM +0200, Ludovic Court=C3=A8s wrote: [...] >> Note that FHS distros don=E2=80=99t do better: either the service is >> hot-replaceable (nginx; I don=E2=80=99t know of any other) or can at lea= st >> reload its config (sshd, etc.), and then it=E2=80=99s dynamically upgrad= ed, or >> it=E2=80=99ll be upgraded next time you restart it. >>=20 >> That=E2=80=99s because fundamentally only the user can tell whether now = is a >> good time to restart, say, sshd. > > Not exactly the point, but Debian regularly restarts sshd for me on a > remote box (somehow) without me losing the connection. Good point! I think sshd opens child processes for new sessions, and thanks to that it falls into the category of service that can be hot-replaced. For hot-swappable daemons, I think we should provide a specific =E2=80=98re= load=E2=80=99 or =E2=80=98upgrade=E2=80=99 action as was discussed at . That way, to figure out the right strategy, we would just check whether the service supports that action. Thanks, Ludo=E2=80=99.