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.