linux.debian.devel
[Top] [All Lists]

Re: Standard way to disable services

Subject: Re: Standard way to disable services
From: Steve Langasek <vorlon@xxxxxxxxxx>
Date: Sat, 26 Jul 2008 19:50:12 +0200
Newsgroups: linux.debian.devel

On Sat, Jul 26, 2008 at 07:27:27PM +0200, Luk Claes wrote:
> Steve Langasek wrote:
> > On Sat, Jul 26, 2008 at 02:11:26PM +0200, Josselin Mouette wrote:
> >> Le samedi 26 juillet 2008 à 13:18 +0200, Harald Braumann a écrit :
> >>> 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.

> >> The standard way is to remove the symlinks in /etc/rc?.d

> > No, the standard way is to *rename* the S symlinks to K symlinks.

> One draw back is that it's not obvious what used to be an S link if you
> want to reenable them, that's why I rename them to s symlinks...

Unfortunately, that still leaves the service state undefined and will cause
services to be restarted when invoke-rc.d is used.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slangasek@xxxxxxxxxx                                     vorlon@xxxxxxxxxx


-- 
To UNSUBSCRIBE, email to debian-devel-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>