From ac7a72740e98e3ddd0d455e1630ae329f26f1f9a Mon Sep 17 00:00:00 2001 From: Chris Sharp Date: Sat, 23 Sep 2017 15:39:59 -0400 Subject: [PATCH] Add start/stop in place of restart (opensrf) --- files_for_build/postinst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/files_for_build/postinst b/files_for_build/postinst index 2d9802c..c44c2ce 100755 --- a/files_for_build/postinst +++ b/files_for_build/postinst @@ -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 -- 2.11.0