Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed DevStack on my Ubuntu 12.04 laptop. But now, every time I start my laptop, the Apache HTTP servers and MySQL daemon are running at startup. Is there anyway to stop that from happening?

share|improve this question
up vote 1 down vote accepted

Those applications are considered services so you're going to want to do 2 things. First stop them now, you can use the service command to stop them. Second you're going to want to disable them permanently between reboots.

You can use this command to see all the services available and their state.

% service --status-all
 [ - ]  NetworkManager.dpkg-backup
 [ ? ]  acpi-support
 [ ? ]  acpid
 [ ? ]  alsa-restore
 [ ? ]  alsa-store
 [ ? ]  anacron
 [ + ]  apache2
 [ ? ]  apmd
 [ - ]  apparmor
 [ - ]  bootlogd
 [ - ]  brltty
 [ ? ]  console-setup

Once you've identified which services are running you can use this command to stop them.

% service apache2 stop
% service mysqld stop

Finally to permanently disable these services use one of the forms of the ommand.

  • echo "manual" >> /etc/init/mysql.override
  • update-rc.d apache2 disable
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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