help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Don't auto-start a service in Shepherd


From: Carlo Zancanaro
Subject: Re: Don't auto-start a service in Shepherd
Date: Sun, 25 Feb 2018 09:27:49 +1100
User-agent: mu4e 1.0; emacs 25.3.1

On Fri, Feb 23 2018, Rutger Helling wrote:
Is there a way to prevent auto-starting a service in Shepherd? I find that if I use "herd disable service" it still automatically starts the service on a reboot/reconfigure.

I've just had a look at gnu/services/shepherd.scm, and it looks like system services can set `auto-start?` to #f when creating their shepherd-service, but not many expose this. I think openssh is the only service to expose it to the system configuration. You could try patching the service you want to use to expose the option to not automatically start it. Which service are you trying to disable?

There's a discussion to be had about whether shepherd should remember disabled services across a reboot/reconfigure. I don't think it should, because the running services should be considered a part of the system specification.

Carlo

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]