I don't want to remove the service, I just want to avoid its start on boot. I still need the option to start it manually later (with the
systemctl start <service> command).
I tried to use
systemctl disable <service>. It doesn't work, because it removes the service.
There is another possibility. In its service file,
could be commented out (and then,
systemctl daemon-reload). It works in the case of my own services, because their service files was written by me.
However, the service files belonging to distribution, are in
/lib/systemd/system. Files in this directory are managed by the OS, i.e. they would be overwritten by updates, other parts of the system might assume that these are unmodified, and so on. Simply editing system files out of the
/etc is a bad practice, and I don't want to do that. I don't want to edit configuration files in my
What to do?