chiark / gitweb /
units: Add support for automounting configfs, ala debugfs, etc.
[elogind.git] / units / systemd-tmpfiles-clean.service.in
index 9d05135438fe7e56a63b9ed17b296a7c44bff21e..3c8e72ebf589640b1796ff00299cdd662f13826e 100644 (file)
@@ -11,9 +11,12 @@ DefaultDependencies=no
 Wants=local-fs.target
 After=systemd-readahead-collect.service systemd-readahead-replay.service local-fs.target
 Before=sysinit.target shutdown.target
-ConditionPathExists=/etc/tmpfiles.d
+ConditionDirectoryNotEmpty=|/usr/lib/tmpfiles.d
+ConditionDirectoryNotEmpty=|/usr/local/lib/tmpfiles.d
+ConditionDirectoryNotEmpty=|/etc/tmpfiles.d
+ConditionDirectoryNotEmpty=|/run/tmpfiles.d
 
 [Service]
 Type=oneshot
-ExecStart=@rootlibexecdir@/systemd-tmpfiles --clean
+ExecStart=@rootbindir@/systemd-tmpfiles --clean
 IOSchedulingClass=idle