diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-06-28 18:22:53 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-06-28 18:22:53 +0200 |
commit | 8701276b3d98b5c6f927e2865ee6a915296033c1 (patch) | |
tree | c871469428278d8412dd63b3c1c3b3a493b6f261 /INSTALL | |
parent | 2fe33a237998841c6c49f5c1c2eaadb51e851f5c (diff) |
Add note on making Apache2 service depend on PostgreSQL
Diffstat (limited to 'INSTALL')
-rw-r--r-- | INSTALL | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -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 |