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
fi
echo Return Value = $?
+ echo State of Apache processes
+ ps -aef | egrep -i 'apache|http'
+
echo End of configuring websockets =~-._
}
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
#a2ensite eg.conf
#echo Return Value = $?
+ echo State of Apache processes
+ ps -aef | egrep -i 'apache|http'
+
echo End of configure 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 = $?