troubleshooting apache
authorJason Etheridge <jason@equinoxinitiative.org>
Mon, 28 Jan 2019 05:53:22 +0000 (00:53 -0500)
committerJason Etheridge <jason@equinoxinitiative.org>
Mon, 28 Jan 2019 05:53:22 +0000 (00:53 -0500)
installer/stretch/eg_stretch_installer.sh

index 046dd7c..fdc96c5 100755 (executable)
@@ -608,6 +608,9 @@ function configure_websockets {
     a2enmod ssl  
     echo Return Value = $?
 
+    echo State of Apache processes
+    ps -aef | egrep -i 'apache|http'
+
     echo After OpenSRF is up and running, fire up the secondary Apache instance. 
     if [ -e /etc/init.d/apache2-websockets ]; then
         /etc/init.d/apache2-websockets start
@@ -616,6 +619,9 @@ function configure_websockets {
     fi
     echo Return Value = $?
 
+    echo State of Apache processes
+    ps -aef | egrep -i 'apache|http'
+
     echo End of configuring websockets =~-._
 }
 
@@ -780,6 +786,8 @@ function eg_dojo_install {
 function configure_apache {
     echo _.-~= configure apache
     date
+    echo State of Apache processes
+    ps -aef | egrep -i 'apache|http'
     echo Copy apache configs into place
     cd /home/test/Evergreen/
     cp Open-ILS/examples/apache_24/eg_24.conf       /etc/apache2/sites-available/eg.conf
@@ -849,6 +857,9 @@ function configure_apache {
     #a2ensite eg.conf
     #echo Return Value = $?
 
+    echo State of Apache processes
+    ps -aef | egrep -i 'apache|http'
+
     echo End of configure apache =~-._
 }
 
@@ -956,20 +967,30 @@ function eg_restart_apache {
     #    systemctl stop apache2@websockets.service
     #    echo Return Value = $?
     #fi
+    echo State of Apache processes
+    ps -aef | egrep -i 'apache|http'
     if [ -e /etc/init.d/apache2 ]; then
+        echo trying /etc/init.d/apache2 stop
         /etc/init.d/apache2 stop
         echo Return Value = $?
     else
+        echo trying systemctl stop apache2
         systemctl stop apache2
         echo Return Value = $?
     fi
+    echo State of Apache processes
+    ps -aef | egrep -i 'apache|http'
     if [ -e /etc/init.d/apache2 ]; then
+        echo trying /etc/init.d/apache2 start
         /etc/init.d/apache2 start
         echo Return Value = $?
     else
+        echo trying systemctl start apache2
         systemctl start apache2
         echo Return Value = $?
     fi
+    echo State of Apache processes
+    ps -aef | egrep -i 'apache|http'
     #if [ -e /etc/init.d/apache2-websockets ]; then
     #    /etc/init.d/apache2-websockets start
     #    echo Return Value = $?