From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:33300) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iX04F-0003X9-4S for guix-patches@gnu.org; Tue, 19 Nov 2019 04:45:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iX04E-0002hF-2f for guix-patches@gnu.org; Tue, 19 Nov 2019 04:45:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:37786) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iX04D-0002h9-Vc for guix-patches@gnu.org; Tue, 19 Nov 2019 04:45:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iX04D-0005aa-Rh for guix-patches@gnu.org; Tue, 19 Nov 2019 04:45:01 -0500 Subject: [bug#38240] [PATCH v2] services: sysctl: Make service one-shot. Resent-Message-ID: From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20191116214206.20590-1-efraim@flashner.co.il> <20191118082111.GF15074@E5400> Date: Tue, 19 Nov 2019 10:44:27 +0100 In-Reply-To: <20191118082111.GF15074@E5400> (Efraim Flashner's message of "Mon, 18 Nov 2019 10:21:11 +0200") Message-ID: <877e3wryis.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Efraim Flashner Cc: 38240@debbugs.gnu.org Hello, Efraim Flashner skribis: > Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7= =9D =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 > GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 > Confidentiality cannot be guaranteed on emails sent or received unencrypt= ed > > From fa6ed7c614d2b3e42fbcb44878b69ebda37f23e7 Mon Sep 17 00:00:00 2001 > From: Efraim Flashner > Date: Sat, 16 Nov 2019 23:33:31 +0200 > Subject: [PATCH] services: sysctl: Make service one-shot. > > * gnu/services/sysctl.scm (sysctl-shepherd-service): Adjust shepherd > service to use '--one-shot' flag. Remove 'stop' command. Remove > 'respawn' option. > --- > gnu/services/sysctl.scm | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/gnu/services/sysctl.scm b/gnu/services/sysctl.scm > index 5e9e6f0661..e59e345189 100644 > --- a/gnu/services/sysctl.scm > +++ b/gnu/services/sysctl.scm > @@ -58,9 +58,7 @@ > (documentation "Configure kernel parameters at boot.") > (provision '(sysctl)) > (start #~(lambda _ > - (zero? (system* #$sysctl "--load" #$sysctl.conf)))) > - (stop #~(const #t)) > - (respawn? #f)))))) > + (invoke #$sysctl "--load" #$sysctl.conf "--one-shot")= ))))))) I think you also need to add (one-shot? #t), right? Thanks, Ludo=E2=80=99.