[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: preferred way to disable init.d script



On Mon, 10 Jan 2005 21:43:13 +0100, Yevgen Reznichenko
<yevgen_net@mail.ru> wrote:
> Gebhardt Thomas wrote:
> 
> > sometimes it is necessary to have a software package installed
> > but you do not want to run the included system service/daemon.
> [...]
>  > So is there a smart solution I don't know?
> 
> In debian hints was mentioned that the "debian way" for doing this is to
> change "S" to "K" in the name of the link. You can do it like this:
> 
> update-rc.d -f <service> remove
> update-rc.d <service> stop 20 0 1 2 3 4 5 6 .
> 
> (Point at the end of the second line is necessary)

I would not do this, as you won't remember the priorities the service
uses within the ruinlevels. Or  first simulate the removal with the -n
option and adjust the addition again in your second line.

I'd just use either sysv-rc-conf or rcconf (which recently does the
same) as they both remember the original priorities and runlevels in
/var/lib/{sysv-rc-conf/ | rcconf/ }.

Easier to remember and less error prone.
And rcconf actually calls update-rc.d.
sysv-rc-conf adjust the symlinks directly, but that doesn't really matter.

 -Olaf



Reply to: