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

Re: Standard way to disable services

On Sat, 2008-07-26 at 10:40 -0700, Steve Langasek wrote:
> 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 a  13:18 +0200, Harald Braumann a ecrit
> > >>> 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.

Recently[0], Don Armstrong said that policy-rc.d[1] can be used to disable
a service, based on local policy.

I haven't investigated it, but I wonder if it isn't the sane way to have
complex dependency (à  la LSB) stored in one place, and system admin
preference in another place.


[0] In a d-devel thread about /var/www vs FHS, Stephen Gran
    wondered "how to have network services disabled by default".
[1] /usr/share/doc/sysv-rc/README.policy-rc.d.gz

Reply to: