chiark / gitweb /
unit: properly update references to units which are merged
[elogind.git] / units / systemd-tmpfiles-setup.service.in
index df80e82be9577e4a5af3a56bc73874e59ed784e5..f90121e12e98653f8e2c16b620b1642fcc550797 100644 (file)
@@ -10,10 +10,13 @@ Description=Recreate Volatile Files and 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
 RemainAfterExit=yes
-ExecStart=@rootlibexecdir@/systemd-tmpfiles --create --remove
+ExecStart=@rootbindir@/systemd-tmpfiles --create --remove