From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:59974) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iW5qR-0008Jm-5D for guix-patches@gnu.org; Sat, 16 Nov 2019 16:43:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iW5qQ-0001ED-9H for guix-patches@gnu.org; Sat, 16 Nov 2019 16:43:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:59248) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iW5qQ-0001E9-6G for guix-patches@gnu.org; Sat, 16 Nov 2019 16:43:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iW5qQ-0006e1-2l for guix-patches@gnu.org; Sat, 16 Nov 2019 16:43:02 -0500 Subject: [bug#38240] [PATCH] services: sysctl: Make service one-shot. Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:59946) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iW5q4-0008Gb-RY for guix-patches@gnu.org; Sat, 16 Nov 2019 16:42:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iW5q3-0000w9-VC for guix-patches@gnu.org; Sat, 16 Nov 2019 16:42:40 -0500 Received: from flashner.co.il ([178.62.234.194]:33612) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iW5q3-0000vA-Of for guix-patches@gnu.org; Sat, 16 Nov 2019 16:42:39 -0500 From: Efraim Flashner Date: Sat, 16 Nov 2019 23:42:06 +0200 Message-Id: <20191116214206.20590-1-efraim@flashner.co.il> MIME-Version: 1.0 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: 38240@debbugs.gnu.org Cc: Efraim Flashner * gnu/services/sysctl.scm (sysctl-shepherd-service): Adjust shepherd service to use '--one-shot' flag. Remove 'respawn' option. --- gnu/services/sysctl.scm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gnu/services/sysctl.scm b/gnu/services/sysctl.scm index 5e9e6f0661..1f1cf38195 100644 --- a/gnu/services/sysctl.scm +++ b/gnu/services/sysctl.scm @@ -58,9 +58,8 @@ (documentation "Configure kernel parameters at boot.") (provision '(sysctl)) (start #~(lambda _ - (zero? (system* #$sysctl "--load" #$sysctl.conf)))) - (stop #~(const #t)) - (respawn? #f)))))) + (zero? (system* #$sysctl "--load" #$sysctl.conf "--on= e-shot")))) + (stop #~(const #t))))))) =20 (define sysctl-service-type (service-type --=20 2.24.0