How to stop unwanted servrices during boot

Le grand pinguin rm at mh-freiburg.de
Tue Nov 16 16:37:38 UTC 2004


On Tue, Nov 16, 2004 at 05:12:59PM +0100, Wouter Eerdekens wrote:
> On Tue, Nov 16, 2004 at 11:02:20AM -0500, Shawn Milo wrote:
> > I think that the recommended way to do this is to chmod -x the
> > scripts you do not wish to have executed on startup.
> 
> That's right. The update-rc.d stuff doesn't work across upgrades
> of packages (ie. when you remove the samba initscript with this,
> an upgrade of the samba package will re-enable the startup script)

Update-rc.d _doesn't_ remove init scripts, it does remove the symlinks.

> > So, to disable the samba service, for example, you would type:
> > 
> > chmod -x rc.samba
> 
> that would be chmod -x samba

Autsch, that hurts! The canonical way of configuring this would
be by mens of '/etc/defaults/<servicename>'. Many services do
have an option to enable/disable startup in this file (for example:
apache2 has a 'NO_START=1').

 Cheers ralfD

> > 
> > I am at work on a Windows machine right now, so I don't have the
> > specific path information, but I think those scripts are somewhere
> > in /etc/rc.d.
> 
> they are located in /etc/init.d
> 
> -- 
> Wouter Eerdekens
>                                     "Revenge is a dish best served cold"
> retuow at xs4all.be                             -- Ancient Klingon Proverb
> http://www.haggis.be/
> 
> -- 
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> http://lists.ubuntu.com/mailman/listinfo/ubuntu-users




More information about the ubuntu-users mailing list