Re: disable init scripts
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?
>
> My opinion is that the Debian way would be to remove services that you
> are not using. Simpify your life and clean as you go.
>
> apt-get remove gdm
>
> It is very easy to install them again. So there is no real penalty
> for removing it.
>
> apt-get install gdm
>
> > Install and use sysvconfig.
>
> Yes. Or sysv-rc-conf which I prefer. But both are good.
>
> sysvconfig
> rcconf
> sysv-rc-conf
>
> For those who like hands on it is also possible to do things yourself
> at the low level. But don't remove the symlink. In the extreme if
> you remove all symlinks then there is no information saying that you
> have configured it specially. Instead keep the symlink but rename it.
> Changes such as these will be preserved on package upgrades.
>
> cd /etc/rc3.d
> mv S99gdm K99gdm
>
> Bob
What I've done in the past to temporarily disable init scripts from
running is:
cd /etc/init.d
mv exim4 exim4-
No meddling/remembering which runlevel I'm in etc.
Reply to: