Stop apache, do some stuff, then start apache.
authorChris Sharp <csharp@georgialibraries.org>
Sat, 23 Sep 2017 18:13:12 +0000 (14:13 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Sat, 23 Sep 2017 18:13:12 +0000 (14:13 -0400)
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
files_for_build/postinst-cluster

index 1b2c910..6669b05 100755 (executable)
@@ -35,10 +35,11 @@ if [ ! -e "/etc/apache2/ssl" ]
        popd
 fi
 
+service apache2 stop
 sed -i "s^APACHE_RUN_USER=www-data^APACHE_RUN_USER=opensrf^g" /etc/apache2/envvars
 /usr/sbin/a2dissite 000-default > /dev/null
 /usr/sbin/a2ensite eg.conf > /dev/null
-/etc/init.d/apache2 restart
+service apache2 start
 }
 
 init_db()
@@ -138,6 +139,8 @@ chown opensrf.opensrf /openils -R
 }
 
 # install_cpan_modules ## now installed from repos. 
+echo "csharp: before fixup_apache"
+ps aux | grep apache
 fixup_apache
 #init_db
 #add_eg_db_user