Home » Questions » Computers [ Ask a new question ]

How do I stop services from starting on boot on Ubuntu?

How do I stop services from starting on boot on Ubuntu?

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?

Asked by: Guest | Views: 366
Total answers/comments: 3
bert [Entry]

"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."
bert [Entry]

"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).


Run Services Settings: System → Administration → Services.
Enter your password.
Select the services you want running, then click OK when done."
bert [Entry]

"On Ubuntu 16:

sudo systemctl disable mysql

update-rc.d method wasn't working for me.

Upstart has been deprecated in Ubuntu 15."
"On Ubuntu 16:

sudo systemctl disable mysql

update-rc.d method wasn't working for me.

Upstart has been deprecated in Ubuntu 15."