I have lots of servers installed (Apache, MySQL, etc.), but I don't want them all to start at boot time (they drain power, and I'm on batteries most of the time). How do I configure this?

link|improve this question

73% accept rate
feedback

3 Answers

up vote 11 down vote accepted

In the console, you could write:

sudo update-rc.d -f apache2 remove
sudo update-rc.d -f mysql remove
...

For additional information read Ubuntu Bootup How to.

link|improve this answer
feedback

This link is a bit out dated version wise, but does it match an option in your version?

Configure startup services

This requires administrative privileges (see Chapter 2, Administrative Tasks).

  1. Run Services Settings: SystemAdministrationServices.
  2. Enter your password.
  3. Select the services you want running, then click OK when done.
link|improve this answer
The link is broken now (404). – Peter Mortensen Nov 19 '11 at 10:26
feedback

Another way to accomplish this is to 'disable' the sym link - not delete it.

sudo update-rc.d mysql disable 2

This will rename the sym link to start with 'K' and the service won't start-up on boot. You can then re-enable it at any time if you do decide you want it to start-up on boot.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.