chiark / gitweb /
units: order systemd-tmpfiles-clean.service after time-sync.target
authorLennart Poettering <lennart@poettering.net>
Thu, 19 Jun 2014 22:15:39 +0000 (00:15 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 19 Jun 2014 22:15:39 +0000 (00:15 +0200)
That way, on systems lacking an RTC we don't false start removing aged
files too early.

units/systemd-tmpfiles-clean.service.in

index 5946fcd..31b2378 100644 (file)
@@ -9,8 +9,9 @@
 Description=Cleanup of Temporary Directories
 Documentation=man:tmpfiles.d(5) man:systemd-tmpfiles(8)
 DefaultDependencies=no
-After=systemd-readahead-collect.service systemd-readahead-replay.service local-fs.target
-Before=sysinit.target shutdown.target
+Conflicts=shutdown.target
+After=systemd-readahead-collect.service systemd-readahead-replay.service local-fs.target time-sync.target
+Before=shutdown.target
 
 [Service]
 Type=oneshot