From mboxrd@z Thu Jan 1 00:00:00 1970 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 Subject: [bug#38240] [PATCH v3] services: sysctl: Make service one-shot. Resent-Message-ID: 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-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="rQAi4ZBraoACHIeu" Content-Disposition: inline In-Reply-To: <877e3wryis.fsf@gnu.org> 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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 38240@debbugs.gnu.org --rQAi4ZBraoACHIeu Content-Type: multipart/mixed; boundary="D8QxnvyRlKGQJxl7" Content-Disposition: inline --D8QxnvyRlKGQJxl7 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Here's yet another newer version :) --=20 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 unencrypted --D8QxnvyRlKGQJxl7 Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0001-services-sysctl-Make-service-one-shot.patch" Content-Transfer-Encoding: quoted-printable =46rom 796bf6d1b58d675b04198e536bae62552b16da75 Mon Sep 17 00:00:00 2001 =46rom: 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 the 'one-shot?' keyword. Remove 'stop' command. 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..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)))))) =20 (define sysctl-service-type (service-type --=20 2.24.0 --D8QxnvyRlKGQJxl7-- --rQAi4ZBraoACHIeu Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl3TvVUACgkQQarn3Mo9 g1FwCw/8D4cHpZuGu7CagW442PdN8pKs3kUGjZn4k/esT/0kwCX4X+ZVbKxlv2Yv 0A0zua46QeiXbpyWr0rFTGvglQDc6LpuVCFH2HRa4I9Hxj6gCdvO/JYFzrjwFKZ6 MvCNcwgt48MKZ53HjDPIx8t+N/50sYoqLyXRj4r9xs0hh2Jfkfj0E6fdkWwZ8FVf l36Ba8hAMDmqxuK64LSOp80jWzqdeX4OkT07t9AzEKkVTP/wYGKxMBWyY8/96wmT wPRxnogAB9HZCJJFKpX0QNvicWLay8pd9fdxpkdRUMqNAsS46hLrJq9D1cVIvKAu dgL+pp6OxmQzbhU4gkldfiTNA47XCHKFfdCl54IxQcdECL8kIgrRprAxuw/3ckrX 2D14YI1wRciW3++IzyJh4DldqIkWotFHFApE0WPfSisUIUnsI/YVgbYYfszF7vBd jb8AyDGU5o1JATdo6KvnPnwgelTvD28OUngEdF+O0g3F7TtdXCpWHxfMvygVlN92 42eZ927aggNuNbiDc4Se3lQI6bJr4zIu+jH5aGFM6kDslXCF7ajsplVfXYTXYGhN FntLMJVZis94wgJdokppVxkzCk/6sby/qOzGaiv03jugCWyGqt7dwdS38MqszyPa coabeCSwKiYsqBXvn7zQpn63Ojr7sbFot9r5YylJRB7mrF7H3BM= =tW0/ -----END PGP SIGNATURE----- --rQAi4ZBraoACHIeu--