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

Re: The right way to not start daemons



On Fri, Nov 09, 2001 at 05:33:25PM +0100, David N. Welton wrote:

> Matt Zimmerman <mdz@debian.org> writes:
> 
> > Actually, there's /etc/rc?.d for just that purpose.  Isn't this in a FAQ
> > somewhere?
> 
> Adding and removing symlinks is clunky (unless there is, indeed, some
> other way?).

Clunky-old, yes.  Clunky-traditional, yes.  Clunky-broken, no.  If you would
prefer something else, look into file-rc.

> Some sort of start.allow and start.deny files would be cool - that way you
> could have either a 'start most things minus a few' policy or a 'start
> only what I say here' policy.

'start most things minus a few':

rm /etc/rc?.d/S??{package1,package2}

'start only what I say here':

find /etc/rc?.d -name 'S*' ! -name 'S??package1' | xargs rm

Equivalently, you can edit /etc/runlevel.conf to do the same thing with
file-rc.  So there are already two mechanisms for doing this, and some folks
are working on a fancier one that is dependency-oriented instead of using
strict ordering.

-- 
 - mdz



Reply to: