Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

My problem is that I don't want to stop the apache daemon with the command ./apache2 stop from /etc/init.d (I know to do this). I don't want the apache service start automatically in /etc/init.d on the system startup. But I also need to keep the service in the init.d folder. How can I do this? Do I have to change some fields in the service script ?

share|improve this question
Please add your distribution. –  Shutupsquare Jan 24 '13 at 15:15
I have Debian Wheezy. –  Kyrol Jan 25 '13 at 14:18

1 Answer 1

up vote 5 down vote accepted

Depending on your distro, you should be able to execute a command to disable the service on startup. Doing this it will be stopped until you manually start it. Here are some examples on different distros:

  • Ubuntu/Debian: update-rc.d -f apache2 remove
  • Gentoo: rc-update del apache2
  • ArchLinux: systemctl disable apache2
share|improve this answer
I have Debian Wheezy –  Kyrol Jan 25 '13 at 14:18
Thanks a lot. It works. –  Kyrol Jan 26 '13 at 15:18

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.