aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-06-28 18:22:53 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-06-28 18:22:53 +0200
commit8701276b3d98b5c6f927e2865ee6a915296033c1 (patch)
treec871469428278d8412dd63b3c1c3b3a493b6f261
parent2fe33a237998841c6c49f5c1c2eaadb51e851f5c (diff)
Add note on making Apache2 service depend on PostgreSQL
-rw-r--r--INSTALL15
1 files changed, 15 insertions, 0 deletions
diff --git a/INSTALL b/INSTALL
index 95bc835..32c50b3 100644
--- a/INSTALL
+++ b/INSTALL
@@ -215,6 +215,21 @@ $ sudo systemctl restart apache2
To verify, visit the repository root. To troubleshoot, see Apache logs.
+Now that Apache2 loads the brep module which requires PostgreSQL, it is a good
+idea to make the Apache2 service depend on PostgreSQL so that they are started
+in proper order. Here is how we can do it with systemd (with newer versions
+you can use 'systemctl edit' instead of mkdir and cat):
+
+mkdir -p /etc/systemd/system/apache2.service.d/
+cat >/etc/systemd/system/apache2.service.d/postgresql.conf
+[Unit]
+Requires=postgresql.service
+After=postgresql.service
+^D
+systemctl daemon-reload
+systemctl cat apache2 # Verify override is listed.
+systemctl restart apache2 # Verify the service still works.
+
7. Optimize CSS