How to stop a Debian service starting at boot in a way which will not be undone if the package containing the service is upgraded?
Research shows several ways are commonly used to stop a service starting at boot:
- update-rc.d -f <service name> remove
This has the effect of removing all the /etc/rc*.d/[KS]*<service name> symlinks
- Removing the execute permission on /etc/init.d/<service name>
- Changing the S in /etc/rc*.d/S*<service name> symlink names to K
- Modifying /etc/default/<service name> to configure the service not to start.
Not all (few?) services support such a configuration option.
- Perhaps only on upstart systems where it may be the only way ... Modifying /etc/init/<service name>.conf file to configure the service not to start.
This issue of persistence during package upgrade is not mentioned in the LQ WIKI page on update-rc.d
and I could not find anything about it in the Debian FAQ
where a search
found only three references to update-rc.d.