chiark / gitweb /
unit: properly update references to units which are merged
[elogind.git] / units / systemd-tmpfiles-clean.service.in
index 3b27330..3c8e72e 100644 (file)
@@ -10,10 +10,13 @@ Description=Cleanup of Temporary Directories
 DefaultDependencies=no
 Wants=local-fs.target
 After=systemd-readahead-collect.service systemd-readahead-replay.service local-fs.target
-Before=basic.target shutdown.target
-ConditionPathExists=/etc/tmpfiles.d
+Before=sysinit.target shutdown.target
+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