chiark / gitweb /
rtc in localtime: use settimeofday(NULL, tz) instead of hwclock(8)
[elogind.git] / units / var-lock.mount
index a7668da8bd39b3fc412d4505e8c5c3f278463c50..80e1bab2618fe62872d51c7c47c8016b10813fd2 100644 (file)
@@ -8,11 +8,11 @@
 [Unit]
 Description=Lock Directory
 Before=local-fs.target
+# skip mounting if the directory does not exist or is a symlink
+ConditionPathIsDirectory=/var/lock
 
 [Mount]
-What=tmpfs
+What=/run/lock
 Where=/var/lock
-Type=tmpfs
-
-[Install]
-WantedBy=local-fs.target
+Type=bind
+Options=bind