From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55374) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqiy2-00049P-UI for guix-patches@gnu.org; Tue, 27 Feb 2018 12:23:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eqixy-0005IN-9x for guix-patches@gnu.org; Tue, 27 Feb 2018 12:23:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:56207) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eqixy-0005IG-4o for guix-patches@gnu.org; Tue, 27 Feb 2018 12:23:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eqixx-0001kO-Uj for guix-patches@gnu.org; Tue, 27 Feb 2018 12:23:01 -0500 Subject: [bug#30532] [PATCH] Shepherd: Terminate all services upon SIGTERM or SIGHUP Resent-Message-ID: Date: Tue, 27 Feb 2018 12:22:43 -0500 From: Leo Famulari Message-ID: <20180227172243.GA19017@jasmine.lan> References: <87sh9wnbu6.fsf@zancanaro.id.au> <87lgfe4vft.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="4Ckj6UjgE2iN1+kY" Content-Disposition: inline In-Reply-To: <87lgfe4vft.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: Carlo Zancanaro , 30532@debbugs.gnu.org --4Ckj6UjgE2iN1+kY Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 27, 2018 at 10:45:58AM +0100, Ludovic Court=E8s wrote: > Carlo Zancanaro skribis: >=20 > > I use Shepherd to manage my user session, and if I log out then > > Shepherd leaves all my services running. This patch handles SIGTERM > > and SIGHUP to prevent that. >=20 > Good catch! "This update broke my workflow" Joking aside, I think this change is correct, but it would be great to be able to have long-running unprivileged processes, as on systemd. There, the administrator can use `loginctl enable-linger $USER`. We'd want to do it in the system configuration. From loginctl(1): ------ Enable/disable user lingering for one or more users. If enabled for a specific user, a user manager is spawned for the user at boot and kept around after logouts. This allows users who are not logged in to run long-running services. Takes one or more user names or numeric UIDs as argument. If no argument is specified, enables/disables lingering for the user of the session of the caller. ------ --4Ckj6UjgE2iN1+kY Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEsFFZSPHn08G5gDigJkb6MLrKfwgFAlqVk94ACgkQJkb6MLrK fwgPzg/8Dnnizd1nnhw/v5ok6A70JMYE2zCfuKesIkYGO6q3D66Tf+jzY1fEmSBF sxFiDxBL6RX6Nr8Knq2O8y6sRh0heGuHqGCTJi+QsqbWMSGZn4kromLdaCq578co +yv5E5c2AuudrWJilu1dKZRzSP0nnZGZjjCIK6BCGcLowl0c41vx3mXT4txIHIrg IOwI29aWFnHl2+mZ3Mwnylyoc1/CbHbteEoHt0/gMdxi2XrX3z10yhgX3sfODPMG f2zEQpkFFqcDxaVBaYXLbNTxexY2tSGm9AWj35qzgsz/baDvcCPuL9iHWUzPRz+7 ZdTTCR1JRXW563iFrgLbqOv3d+cwBk5QrDT6u26hj2ui7V/hni5qVNyGG/TmDqfM 8ySKmWxecXkrhMzGo72/6edBxprdEUSf5y/mh+anp051kenwn5PbXQQEzugyJvMp ubTf27LsuYV/wgkkdbQTliXcIjwklKAEBBokh+S8x9nxxaJKIdrC4cfWWPMLR/Nz HHj20qqNcCv58dWsjb070MbFsSzPHSTCgUp9/fIh2zfZ5M3UreZ0/9pn6A/lyQp/ aQS4YyvqCfy/C9efir9EV3B3Wiu/aLZq/e/jhW4nycZsWb0LjUEuSeUVHEmerS41 /j5OJcx/PECVIIiXBXZDJpsCjk5SFwQVfvfPMsl5HXdxjN0yms8= =76Wm -----END PGP SIGNATURE----- --4Ckj6UjgE2iN1+kY--