Skip to content

Instantly share code, notes, and snippets.

@nicolasramy
Created June 8, 2015 09:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicolasramy/a7fd45be6b394049bc51 to your computer and use it in GitHub Desktop.
Save nicolasramy/a7fd45be6b394049bc51 to your computer and use it in GitHub Desktop.

As Apache still uses the traditional SysV init scripts you can use

sudo update-rc.d -f apache2 remove

to remove the links from /etc/rcX.d or, alternatively use

sudo update-rc.d apache2 disable

which "disables" the script by changing it from a start script to a stop script. This is reversible by

sudo update-rc.d apache2 enable
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment