From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:35263) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iX0Hn-000152-UX for guix-patches@gnu.org; Tue, 19 Nov 2019 04:59:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iX0Hm-0001NE-RD for guix-patches@gnu.org; Tue, 19 Nov 2019 04:59:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:37796) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iX0Hm-0001N6-OL for guix-patches@gnu.org; Tue, 19 Nov 2019 04:59:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iX0Hm-0007rE-G7 for guix-patches@gnu.org; Tue, 19 Nov 2019 04:59:02 -0500 Subject: [bug#38240] [PATCH v2] services: sysctl: Make service one-shot. Resent-Message-ID: Date: Tue, 19 Nov 2019 11:57:52 +0200 From: Efraim Flashner Message-ID: <20191119095752.GO15074@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="kPJUzav3owWaKxsz" 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 --kPJUzav3owWaKxsz Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Nov 19, 2019 at 10:44:27AM +0100, Ludovic Court=C3=A8s wrote: > Hello, >=20 > Efraim Flashner skribis: >=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 unencry= pted > > > > 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= ")))))))) >=20 > I think you also need to add (one-shot? #t), right? >=20 Indeed. I'm also pretty sure that I don't want the '--one-shot' flag that I copied from cuirass. --=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 --kPJUzav3owWaKxsz Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl3TvJoACgkQQarn3Mo9 g1EV1xAAmpUBnB62TzDlFfM/3sk+DEhEBZLkOASAXBAJuAXt1fOGCoer8yySRmEy ZdY6/gyHVLWyrjAYAcrJkY775j8x4MEKfRweLP45k4yeJROZ7hODEcVt4vGoi7tW aXe1pza3iV8QOpwC4LZtoVmPZlfCZmd7iI+1ZipBcj2YTU2TtSULX17ymMAqVVKj RGAijCpEnPSzlUsmGuJRw7I0qrUK3jP5PzA9aPYw4bZFuPrZ8E0f3LWzp3AuEi/u iHEQH+4HmmUz9tuYamfpMj8ru8gywxTs6n850zqzfXDyCORsH2l1+lQNr0XY3fN6 bO86YZpT4evnWTYexEN/G+l6Q0rFnQzQ1BQyD6wRDJCRMk0RMMaFwEpw16ZdgAkh dtAjtdrdqXY2tudnxes62YfOInHNOmho2pEUJ0CJRPxhmzViKucElbekG00VR0S/ pxuZWQv2PB9ajKEpxKjBfnbuL2pTEchKd6haui9rhR5t1RRVl3lLBzUa6EWwGxVY nRNk2Q5PcdRvHjAjd4OLhqSLF1mVVy7MhvBMnTzS+lMdIxpi+pt+jy8TSJw/7ofY xcd/L5mHtnyriF4W7z0NpvqLNEnvNUugWHH7kKMaRwqSin6Eub0NwofRSHnzOdqi Jie05NSnW0DOuKJKYG59xCZ0W21TQgzKLwkkrIaeAhSTd3RnczY= =2gII -----END PGP SIGNATURE----- --kPJUzav3owWaKxsz--