From patchwork Tue Nov 19 10:00:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Efraim Flashner X-Patchwork-Id: 16142 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 953791776B; Tue, 19 Nov 2019 10:02:12 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 5C0F017766 for ; Tue, 19 Nov 2019 10:02:12 +0000 (GMT) Received: from localhost ([::1]:43418 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iX0Kp-0002Vw-Tk for patchwork@mira.cbaines.net; Tue, 19 Nov 2019 05:02:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35704) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iX0Kk-0002Vg-SG for guix-patches@gnu.org; Tue, 19 Nov 2019 05:02:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iX0Kj-0002a7-PW for guix-patches@gnu.org; Tue, 19 Nov 2019 05:02:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:37800) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iX0Kj-0002Zz-MF for guix-patches@gnu.org; Tue, 19 Nov 2019 05:02:05 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iX0Kf-0007xL-TE for guix-patches@gnu.org; Tue, 19 Nov 2019 05:02:05 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#38240] [PATCH v3] services: sysctl: Make service one-shot. Resent-From: Efraim Flashner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 19 Nov 2019 10:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38240 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?utf-8?q?Court=C3=A8s?= Cc: 38240@debbugs.gnu.org Received: via spool by 38240-submit@debbugs.gnu.org id=B38240.157415769230544 (code B ref 38240); Tue, 19 Nov 2019 10:02:01 +0000 Received: (at 38240) by debbugs.gnu.org; 19 Nov 2019 10:01:32 +0000 Received: from localhost ([127.0.0.1]:46621 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iX0KC-0007wa-61 for submit@debbugs.gnu.org; Tue, 19 Nov 2019 05:01:32 -0500 Received: from flashner.co.il ([178.62.234.194]:49044) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iX0KA-0007wN-2r for 38240@debbugs.gnu.org; Tue, 19 Nov 2019 05:01:30 -0500 Received: from localhost (unknown [141.226.13.108]) by flashner.co.il (Postfix) with ESMTPSA id 4640A4021F; Tue, 19 Nov 2019 10:01:24 +0000 (UTC) Date: Tue, 19 Nov 2019 12:00:53 +0200 From: Efraim Flashner Message-ID: <20191119100053.GP15074@E5400> References: <20191116214206.20590-1-efraim@flashner.co.il> <20191118082111.GF15074@E5400> <877e3wryis.fsf@gnu.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <877e3wryis.fsf@gnu.org> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 User-Agent: Mutt/1.12.2 (2019-09-21) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Here's yet another newer version :) diff --git a/gnu/services/sysctl.scm b/gnu/services/sysctl.scm index 5e9e6f0661..2110b80395 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)))))) + (invoke #$sysctl "--load" #$sysctl.conf))) + (one-shot? #t)))))) (define sysctl-service-type (service-type