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