From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rutger Helling Subject: Re: Don't auto-start a service in Shepherd Date: Mon, 26 Feb 2018 11:42:05 +0100 Message-ID: <20180226114205.70f8965c@mykolab.com> References: <20180223102236.0aef2eac@mykolab.com> <87fu5qyqe2.fsf@zancanaro.id.au> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/4Byuv9ztKYJEBbIzzcc+Lqg"; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43568) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eqGEk-0004sP-TY for help-guix@gnu.org; Mon, 26 Feb 2018 05:42:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eqGEg-0002Ac-FK for help-guix@gnu.org; Mon, 26 Feb 2018 05:42:26 -0500 Received: from mx.kolabnow.com ([95.128.36.42]:10766) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eqGEg-0002AP-3N for help-guix@gnu.org; Mon, 26 Feb 2018 05:42:22 -0500 In-Reply-To: <87fu5qyqe2.fsf@zancanaro.id.au> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Carlo Zancanaro Cc: help-guix@gnu.org --Sig_/4Byuv9ztKYJEBbIzzcc+Lqg Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Thanks for the replies. My use case is that I don't want to auto-start SDDM, since I usually start GNOME (Wayland) from the TTY. However there are certain cases where I want to start GNOME on X11, for which I do need SDDM. On systemd you can do "systemctl disable service", so I was wondering if there was an equivelant command in Shepherd. Removing the service entirely and reconfiguring every time I want to start SDDM isn't really what I'm looking for. I'll have a look at `auto-start?`. I think it would be nice if all services exposed this option. On Sun, 25 Feb 2018 09:27:49 +1100 Carlo Zancanaro wrote: > On Fri, Feb 23 2018, Rutger Helling wrote: > > Is there a way to prevent auto-starting a service in Shepherd? I=20 > > find that if I use "herd disable service" it still automatically=20 > > starts the service on a reboot/reconfigure. =20 >=20 > I've just had a look at gnu/services/shepherd.scm, and it looks=20 > like system services can set `auto-start?` to #f when creating=20 > their shepherd-service, but not many expose this. I think openssh=20 > is the only service to expose it to the system configuration. You=20 > could try patching the service you want to use to expose the=20 > option to not automatically start it. Which service are you trying=20 > to disable? >=20 > There's a discussion to be had about whether shepherd should=20 > remember disabled services across a reboot/reconfigure. I don't=20 > think it should, because the running services should be considered=20 > a part of the system specification. >=20 > Carlo --Sig_/4Byuv9ztKYJEBbIzzcc+Lqg Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEAVThuRzJ2e93ZI3n86cn20T8yjYFAlqT5H4ACgkQ86cn20T8 yjZE9Af9HuwuYnAxGo645yCk9gKYDaNp8KiFq1wXjKQbkPN3lqhJd4/wjRnOfilK WclPoJzD6/TULOOS662XF0VXzPvuYMcvsP3VzuFMxsjPk9dJfLkOVShqtOK9ZzA7 5mrejNd2SorK8vVfUgjFeWJRBR+6Va2Fr9dKpiSbS58MAPx8qSGHHAu/obZns0Xa xf5suGRW4ZVWcR+IaniGw4P688DvRWB8+QT1kzUW1sA6/Q1j5X9Q9ocbmW/i82ir GOWoPlXFk6bn+X4SO1N1PegI1tbBqbZPB795xdJrFvv+3GrAoN6wHNUSIyAfCDP/ vjLPGHZJmM+3Ek8KJqdjRZrxvFufiQ== =y5hJ -----END PGP SIGNATURE----- --Sig_/4Byuv9ztKYJEBbIzzcc+Lqg--