Add start/stop in place of restart (opensrf)
authorChris Sharp <csharp@georgialibraries.org>
Sat, 23 Sep 2017 19:39:59 +0000 (15:39 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Sat, 23 Sep 2017 19:39:59 +0000 (15:39 -0400)
files_for_build/postinst

index 2d9802c..c44c2ce 100755 (executable)
@@ -16,7 +16,7 @@ DEBUG()
 fixup_apache() 
 {
 # stop apache2 
-/etc/init.d/apache2 stop
+service apache2 stop
 
 # keep the bad apache modules away --esi
 for m in deflate mpm_event; do a2dismod -f $m > /dev/null; done;
@@ -35,7 +35,7 @@ chown opensrf:opensrf /var/lock/apache2
 /usr/sbin/a2ensite eg.conf > /dev/null
 
 # start apache2 
-/etc/init.d/apache2 start
+service apache2 start
 }
 
 init_db()
@@ -154,9 +154,10 @@ then
        configure_opensrf_xml
        populate_db
 fi
+/etc/init.d/opensrf stop
 fix_openils_perms
 ldconfig
-/etc/init.d/opensrf restart
+/etc/init.d/opensrf start
 if [ $STANDALONE -eq 1 ]
 then 
        run_autogen