diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2016-02-19 13:08:02 +0000 |
---|---|---|
committer | Baserock Gerrit <gerrit@baserock.org> | 2016-02-22 11:20:43 +0000 |
commit | 1f2edd45b03a3e9d86d7c77847612c969b60b86f (patch) | |
tree | e3f5dd9754aee523b3398cd541e2f89f374949af /units/git-daemon.service | |
parent | 54ba90aa3d4830b6321ce6b2f1efe65bc6d3caf8 (diff) | |
download | trove-setup-1f2edd45b03a3e9d86d7c77847612c969b60b86f.tar.gz |
Ensure services don't start before /var is mounted
I hit a strange issue after upgrading git.baserock.org where the
wrong cgit.css stylesheet was being served. Restarting the lighttpd-git
service fixed it. I suspect this might be to do with the service
starting before the /var subvolume is mounted. I can't exactly prove
it but this change seems sensible in any case.
Change-Id: I535305da9ba6135851a38fd3d04c50876de99e21
Diffstat (limited to 'units/git-daemon.service')
-rw-r--r-- | units/git-daemon.service | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/units/git-daemon.service b/units/git-daemon.service index 330169c..fe61257 100644 --- a/units/git-daemon.service +++ b/units/git-daemon.service @@ -1,6 +1,11 @@ [Install] WantedBy=multi-user.target +# If there's a shared /var subvolume, it must be mounted before this +# unit runs. +Requires=local-fs.target +After=local-fs.target + [Unit] Description=Git Daemon for Trove After=network.target |