From dfedeeb66aac599b16c3bdd04294723244edd009 Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Mon, 28 Jan 2019 00:53:22 -0500 Subject: [PATCH] troubleshooting apache --- installer/stretch/eg_stretch_installer.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/installer/stretch/eg_stretch_installer.sh b/installer/stretch/eg_stretch_installer.sh index 046dd7cc8..fdc96c54a 100755 --- a/installer/stretch/eg_stretch_installer.sh +++ b/installer/stretch/eg_stretch_installer.sh @@ -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 = $? -- 2.11.0