From fec65a77360f792a868e51c68c41885b59e62608 Mon Sep 17 00:00:00 2001 From: Jeremy Davis Date: Wed, 4 Mar 2015 10:57:08 -0500 Subject: [PATCH] Ticket #33672 Apache starts before postgres --- debian/postinst | 1 + debian/rules | 2 ++ 2 files changed, 3 insertions(+) diff --git a/debian/postinst b/debian/postinst index 67c08357c..09f9daefd 100644 --- a/debian/postinst +++ b/debian/postinst @@ -2,6 +2,7 @@ chown -R freeside /usr/local/etc/freeside /usr/sbin/update-rc.d freeside defaults 23 01 +/sbin/insserv -d rm -fr /usr/local/etc/freeside/masondata/* exit 0 diff --git a/debian/rules b/debian/rules index 3754f8379..b50190424 100755 --- a/debian/rules +++ b/debian/rules @@ -129,6 +129,7 @@ install-stamp: build-stamp install -d $(FREESIDE_DOCUMENT_ROOT) install -d $(TMP)-webui/usr/local/etc/freeside/ + install -d $(TMP)-webui/etc/insserv/overrides/ install -d $(TMP)/usr/local/etc/freeside/ install -d $(FREESIDE_CACHE)/masondata #MASONDATA # install -d $(TMP)-lib/usr/bin @@ -172,6 +173,7 @@ install-stamp: build-stamp # Create Apache configurations install -d $(APACHE_CONF) $(MAKE) -e DESTDIR=$(APACHE_CONF) install-apache + install -o root -m 755 init.d/insserv-override-apache2 $(TMP)-webui/etc/insserv/overrides/apache2 #Hack the build dir out of apache config -- 2.11.0