-# Stop Apache web server and disable Apache automatic start on boot.
-#
-if [ -x "/etc/init.d/apache" ]; then
-
- # Stop Apache.
- if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
- invoke-rc.d apache stop || true
- else
- /etc/init.d/apache stop || true
- fi
-
- # Disable automatic start on boot.
- if [ -x "`which update-rc.d 2>/dev/null`" ]; then
- update-rc.d -f apache remove > /dev/null 2>&1 || true
- update-rc.d apache stop 90 6 . > /dev/null 2>&1 || true
- fi
-fi
-
-# Also check for Apache-SSL web server.
-#
-if [ -x "/etc/init.d/apache-ssl" ]; then
-
- # Stop Apache-SSL.
- if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
- invoke-rc.d apache-ssl stop || true
- else
- /etc/init.d/apache-ssl stop || true
- fi
-
- # Disable automatic start on boot.
- if [ -x "`which update-rc.d 2>/dev/null`" ]; then
- update-rc.d -f apache-ssl remove > /dev/null 2>&1 || true
- update-rc.d apache-ssl stop 90 6 . > /dev/null 2>&1 || true
- fi
-fi
-
-