summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--units/git-daemon.service5
-rw-r--r--units/lighttpd-git.service5
-rw-r--r--units/lighttpd-morph-cache.service5
3 files changed, 15 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
diff --git a/units/lighttpd-git.service b/units/lighttpd-git.service
index 94c67a4..69dcc34 100644
--- a/units/lighttpd-git.service
+++ b/units/lighttpd-git.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=Lighttpd Web Server
After=network.target
diff --git a/units/lighttpd-morph-cache.service b/units/lighttpd-morph-cache.service
index c7f76e9..6e2a17a 100644
--- a/units/lighttpd-morph-cache.service
+++ b/units/lighttpd-morph-cache.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=Lighttpd Web Server
After=network.target