chiark / gitweb /
journal: move sockets into their own subdir
[elogind.git] / units / var-run.mount
index cd3889ebcedef2d28cba23ed4aa7128f318f64c6..ab4da424c966e99a6ee521f36c1c7b0d44cc6e47 100644 (file)
@@ -8,9 +8,12 @@
 [Unit]
 Description=Runtime Directory
 Before=local-fs.target
+# skip mounting if the directory does not exist or is a symlink
+ConditionPathIsDirectory=/var/run
+ConditionPathIsSymbolicLink=!/var/run
 
 [Mount]
-What=/dev/.run
+What=/run
 Where=/var/run
 Type=bind
 Options=bind