Is there a "recommended way" to disable a service in Debian? (Disable = The service is installed but won't start automatically when the machine boots.)
I know that you can update-rc.d -f service remove
(which basically removes the links in rcX.d
), but doing this you lose the sequence number of the service (SXXservice
, with XX being the sequence number), making life harder when you want to re-enable the service. I also know that I can just rename the links in rcX.d
so that they don't start with S
(or move them somewhere else), but I wondered if there is some "Debian-approved best-practice" way to do this.
Best Answer
Have a look at the update-rc.d man page. The third paragraph of the section named Installing Init Script Links reads …
The last two sentences should answer your question. :-)