[systemd-devel] RefuseEnable
Bill Nottingham
notting at redhat.com
Mon Nov 28 09:14:11 PST 2011
Michael D. Berger (m.d.berger at ieee.org) said:
> Is there a way to prevent a service from being enabled?
1) Don't have an '[Install]' section in the unit file
2) Mask the service (ln -s /dev/null /etc/systemd/system/<foo>.service)
3) Don't install the service file/service binary at all
4) ExecStartPre=/bin/false
5) ... OK, this is rapidly becoming silly
What exactly are you trying to accomplish? Are you intending the
enable-prevention to be done at the package level or the administrator
level?
Bill
More information about the systemd-devel
mailing list