↓ Ir para o conteúdo principal

← todas as notas

📎 Webclip

how to disable apache2 server from auto starting upon boot up

The page says apache2 starts at boot through init scripts in /etc/init.d and symlinks in runlevel directories such as rc0.d to rc6.d. It points to update-rc.d as the tool for changing those links instead of renaming files by hand.

Reading notes
#

  • apache2 starts from init scripts linked into runlevel directories
  • sudo update-rc.d -f apache2 remove removes apache2 from startup links
  • sudo update-rc.d apache2 disable can disable it, and sudo update-rc.d apache2 enable can turn it back on
  • one comment notes that chkconfig {service_name} off may also help
  • one comment says the disable and enable API may not be stable on Ubuntu Trusty
  • one comment links to a GUI tool for managing startup services