From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:50323) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iXVwO-0006Af-Qu for guix-patches@gnu.org; Wed, 20 Nov 2019 14:47:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iXVwN-000653-15 for guix-patches@gnu.org; Wed, 20 Nov 2019 14:47:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:42127) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iXVwM-00064s-FY for guix-patches@gnu.org; Wed, 20 Nov 2019 14:47:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iXVwM-0007wC-5a for guix-patches@gnu.org; Wed, 20 Nov 2019 14:47:02 -0500 Subject: [bug#38304] [PATCH]: Make more services one-shot Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:50245) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iXVw0-0005iA-Aw for guix-patches@gnu.org; Wed, 20 Nov 2019 14:46:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iXVvz-0005zO-4A for guix-patches@gnu.org; Wed, 20 Nov 2019 14:46:40 -0500 Received: from flashner.co.il ([178.62.234.194]:51574) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iXVvf-0005tt-5o for guix-patches@gnu.org; Wed, 20 Nov 2019 14:46:39 -0500 Received: from localhost (unknown [141.226.13.108]) by flashner.co.il (Postfix) with ESMTPSA id 23488401AA for ; Wed, 20 Nov 2019 19:46:15 +0000 (UTC) Date: Wed, 20 Nov 2019 21:45:44 +0200 From: Efraim Flashner Message-ID: <20191120194544.GV15074@E5400> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="4YatIo8qwOC8yTX3" Content-Disposition: inline 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: 38304@debbugs.gnu.org --4YatIo8qwOC8yTX3 Content-Type: multipart/mixed; boundary="W1uEbMXJ1Mj4g6TI" Content-Disposition: inline --W1uEbMXJ1Mj4g6TI Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable After changing the sysctl service to use one-shot I found 3 more that look like they'd be good choices. --=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 --W1uEbMXJ1Mj4g6TI Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0001-services-host-name-Make-service-one-shot.patch" Content-Transfer-Encoding: quoted-printable =46rom 64126d7a861a415bf4faafb30687928742db4f2b Mon Sep 17 00:00:00 2001 =46rom: Efraim Flashner Date: Wed, 20 Nov 2019 21:36:56 +0200 Subject: [PATCH 1/3] services: host-name: Make service one-shot. * gnu/services/base.scm (host-name-service-type): Remove 'respawn?' keyword from shepherd-service-type, add 'one-shot?'. --- gnu/services/base.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnu/services/base.scm b/gnu/services/base.scm index b1eff89ecc..7cd42bb30a 100644 --- a/gnu/services/base.scm +++ b/gnu/services/base.scm @@ -705,7 +705,7 @@ to add @var{device} to the kernel's entropy pool. The = service will fail if (provision '(host-name)) (start #~(lambda _ (sethostname #$name))) - (respawn? #f))))) + (one-shot? #t))))) =20 (define (host-name-service name) "Return a service that sets the host name to @var{name}." --=20 2.24.0 --W1uEbMXJ1Mj4g6TI Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0002-services-console-keymap-service-type-Make-service-on.patch" Content-Transfer-Encoding: quoted-printable =46rom 6c13de1914503afb3533a0fe032b4db767011874 Mon Sep 17 00:00:00 2001 =46rom: Efraim Flashner Date: Wed, 20 Nov 2019 21:38:18 +0200 Subject: [PATCH 2/3] services: console-keymap-service-type: Make service one-shot. * gnu/services/base.scm (console-keymap-service-type): Remove 'respawn?' keyword from shepherd-service-type, add 'one-shot?'. --- gnu/services/base.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnu/services/base.scm b/gnu/services/base.scm index 7cd42bb30a..022bb501ba 100644 --- a/gnu/services/base.scm +++ b/gnu/services/base.scm @@ -746,7 +746,7 @@ to add @var{device} to the kernel's entropy pool. The = service will fail if (start #~(lambda _ (zero? (system* #$(file-append kbd "/bin/loadkeys") #$@files)))) - (respawn? #f))))) + (one-shot? #t))))) =20 (define-deprecated (console-keymap-service #:rest files) #f --=20 2.24.0 --W1uEbMXJ1Mj4g6TI Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="0003-services-console-font-shepherd-services-Make-service.patch" Content-Transfer-Encoding: quoted-printable =46rom 153d02caa1333788df435ca4ffbf915c50d9cb01 Mon Sep 17 00:00:00 2001 =46rom: Efraim Flashner Date: Wed, 20 Nov 2019 21:40:50 +0200 Subject: [PATCH 3/3] services: console-font-shepherd-services: Make service one-shot. * gnu/services/base.scm (console-font-shepherd-services): Remove 'stop' and 'respawn?' keywords from shepherd-service-type, add 'one-shot?'. --- gnu/services/base.scm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gnu/services/base.scm b/gnu/services/base.scm index 022bb501ba..cef2d4cb2b 100644 --- a/gnu/services/base.scm +++ b/gnu/services/base.scm @@ -797,8 +797,7 @@ to add @var{device} to the kernel's entropy pool. The = service will fail if "-C" #$device #$font)) ((0 71) #t) (else #f)))) - (stop #~(const #t)) - (respawn? #f))))) + (one-shot? #t))))) tty+font)) =20 (define console-font-service-type --=20 2.24.0 --W1uEbMXJ1Mj4g6TI-- --4YatIo8qwOC8yTX3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl3Vl+cACgkQQarn3Mo9 g1GP6Q//R+/vw7GU01J38iceLEqUz9gLpUcDqwze8PIRS78yr1GYKuk4BLcstQX7 2/0Xpj8BTH0fMKtwubErk/n7VaqLTR5LVa05TcbOXql+8UgJ3fXHzOfONgkcg8c5 feSU7zuXSI3t5Oo3jgriB68025g4sdyu3DUEE/2RAvclBdZx3216vJeu5JriUTYQ FryUpZqX0T60TfDIIEzFYomvS2WSe8Hl2TJDSJEHrlv5tqxdk3CMPF31hh+afO5T fOAy+Z0ePesl9U1I0ajhh5abm6sM8In1awYUpHnB8ArCnJuKR1H74AdXYZ6wm1aH lGlukQ32zPe2Hy/x+c0o+qOyVXgH+DzCFvyxVoqb7e1eW6ljgoq74HGsqSH3vyzZ tr8GGUggDsJVXPQEm1lBbc8Wa6OeDZhKYeurYXZS0hsaeMSHV2m3K9o/Wut03rjQ S3KC/9djHV2XcAHUWENTaYE/QRe6/ns/oOTfIPS/ceC7eB3rIsBOr36451lDpxfI t75wN3CfTIevHJEZ6s4Idbn8drsJziOP0sdckVQhFvtXyxJ2/nX9jmCqg9DnWZAg 73TCMNIzgDB5KR44arGGd5GjBEygCYdId8JwtRAxr3DDi2/DmpWH2NRUdTmuABsW k0EllW7gOv6D7z6Q+fq8zzwMqM6JMnlDb751Wdb2VpnE+B6HVyQ= =4XBE -----END PGP SIGNATURE----- --4YatIo8qwOC8yTX3--