Re: disable init scripts
On Tue, 16 Aug 2005 09:13:33 -0400
Erik Karlin <firstname.lastname@example.org> wrote:
> On Mon, Aug 15, 2005 at 09:32:45PM -0600, Bob Proulx wrote:
> > John Hasler wrote:
> > > Matthew Lenz wrote:
> > > > is there a 'debian way'/command for disabling init scripts from
> > > > various run levels? Or do I just remove the links from the
> > > > various run levels?
I missed the original message and it's not something I play around with
Usually when I want to disable something in a particular run level I
go the the rcX.d directory in /etc for that run level, rc2.d, rc3.d,
etc... and change the SXXwhatever symlink to KXXwhatever. Since the
default is to run in run level 2 I usually only mess with the rc2.d
If you delete the symlink and then change to that run level from a run
level where that particular service was running then it will continue
running. If you rename the link changing the S to a K then when you
switch to the run level with the K link that service should get killed
if you change from a run level where the service was running.
These are the run level editors I see in Debian.
sysv-rc-conf - SysV init runlevel configuration tool for the terminal
sysvconfig - A text menu based utility for configuring init script links
ksysv - KDE SysV-style init configuration editor
I am not sure when it was added, but the gnome-system-tools package that
is in Debian unstable includes a run level editor, it may not have been
included yet in the version of the package that is in Sarge.
I haven't really played around with them so I don't know if all of
these give you control over individual run levels or if they
unilaterally make changes accross run levels 2 through 5 or how they
treat the links in regard to S, K, or just deleting the link.
I would guess that at the least the KDE one lets you make changes that
are specific to a run level.