chiark / gitweb /
readahead: shortcut replay if /.readahead doesn't exist
[elogind.git] / units / systemd-readahead-replay.service.in
index f6ca475ae74b8713460d5c9758c4de7d60118f71..8ed3b75efefe6e9c13d8f986780fb71f80a68c2f 100644 (file)
@@ -9,7 +9,8 @@
 Description=Replay Read-Ahead Data
 DefaultDependencies=no
 Conflicts=shutdown.target
-Before=shutdown.target
+Before=basic.target shutdown.target
+ConditionPathExists=/.readahead
 
 [Service]
 Type=notify
@@ -18,4 +19,3 @@ RemainAfterExit=yes
 
 [Install]
 WantedBy=default.target
-Also=systemd-readahead-collect.service