Preventing auto-enabling / auto-starting services on package installation
Felipe Sateler
fsateler at debian.org
Sat Jun 27 15:27:31 BST 2015
Hi Sam,
CCing you because I don't know if you are subscribed.
On 27 June 2015 at 09:16, Sam Weisberg <samweisberg at openmailbox.org> wrote:
> Hi list,
>
> I hope this is the right place to ask about this, but I was not able to find
> an answer elsewhere.
>
> I am looking for a way to disable the auto-enablement / autostarting of
> services when installing packages.
> I know it is possible via the debian/rules, but I am primarily an admin who
> wants more control over service starts, not a package maintainer, and I
> don't want to "fork" all packages I need to install.
> Hope you guys can help me out, I just want the package installed (including
> the service file), bit not have debhelper enable or (re-) start any services
> managed by systemd.
You can use policy-rc.d[1] to selectively choose which ones to start,
as deb-systemd-invoke (which most packages with systemd units should
be using) respects it. That should probably solve your problem.
[1] https://jpetazzo.github.io/2013/10/06/policy-rc-d-do-not-start-services-automatically/
--
Saludos,
Felipe Sateler
More information about the Pkg-systemd-maintainers
mailing list