On Wed, Jul 12, 2006 at 09:45:09AM +1000, Alan L Tyree wrote:
> What is the recommended way to stop a particular service from starting
> at boot in Ubuntu?
> 
> In particular, the pcmcia services are not needed on my desktop.

For PCMCIA in particular, I'd be inclined to just remove the packages
entirely -- you're not ever going to need them.

For other packages, like (eg) database servers and webservers that you might
just need every now and then for a bit of development testing, I use the
sysv-rc-conf tool (from the sysv-rc-conf package) to give me a long list of
all the init scripts on my system and checkboxes to fiddle the symlinks in
/etc/rcN.d appropriately.

Things you should *not* do:

* Use update-rc.d to mangle the symlinks (not a user-friendly interface, and
it probably won't do what you expect anyway);

* Use /etc/default/<initscript> and set a variable to prevent the service
from starting at boot (because then you can't use the init script to start
the service later without editing the default again);

* Edit the initscript and add "exit 0" at the top (see above);

* Pretty much anything else that gets commonly recommended.

If you're feeling adventurous, you can just go all-out and fiddle the
symlinks by hand, but that's all sysv-rc-conf does, and it does it a lot
quicker than I can do the renames by hand.

- Matt
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to