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

Re: Standard way to disable services

On Sun, 27 Jul 2008 15:21:44 +0800
Lightning <freedn@shlug.org> wrote:

> you should use the rcconf to disable the services
> apt-get install rcconf

But that surely isn't the standard way, 'cause otherwise the package
wouldn't be priority optional.

Thanks for all the suggestions, I know that there are many ways to do
it, and everyone has his preferences. But obviously there is not really
a standard way in Debian.

I have to take care of quite a view Debian hosts together with others.
Sometimes people involved also change and new folks have to take over
from previous ones. If multiple people are working on the same systems,
it's good if everyone does things the same way everywhere. So usually I
try to stick as close as possible to the way intended in Debian. That
minimises overhead of communication and documentation. Unfortunately,
it seems that there is no best practise for enabling/disabling services.

The Debian Reference manual currently states in chapter 2.4.3, that
the way to go is by manipulating runlevels. But this is really
cumbersome, no runlevel editor is installed by default and the manual
then goes on to explain all the problems with that approach, which
would suggest that the "exit 0" or "chmod a-x" approaches are far
superior when you want to completely disable a service.


> 在 2008-07-26六的 13:18 +0200,Harald Braumann写道:
> > Hi,
> > 
> > quite often I just want to disable a service in /etc/init.d. But
> > there doesn't seem to be a standard way to do that.
> > 
> > Many services have a file in /etc/defaults, where the service can be
> > disabled. In that case, however, the service also can't be started
> > manually.
> > 
> > In http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=+462155 I was
> > told to use sysv-rc-conf. I didn't know that tool before. But it
> > seems a reasonable option.
> > 
> > I usually end up removing the execute bit, as this is the simplest
> > solution and the service can still be started manually.
> > 
> > Shouldn't there be some default way in Debian to disable services?
> > post-install scripts, which ask whether the service should be
> > enabled should adhere to it and it should be supported by tools and
> > also mentioned in the manual.
> > 
> > sysv-rc-conf would be one option, in which case it would have to
> > have priority required. The other option being removing the
> > executable bit. I would be content with either, but I think it
> > would be a good idea to agree on a standard.
> > 
> > Cheers,
> > harry
> > 
> > 

Attachment: signature.asc
Description: PGP signature

Reply to: