summaryrefslogtreecommitdiffstats
path: root/units/systemd-readahead-collect.service.in
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-05-23 03:51:25 +0200
committerLennart Poettering <lennart@poettering.net>2012-05-23 03:51:25 +0200
commit08231e5142bff7ace79957835656672ac100031b (patch)
treed5fc6885d402acc6c3c74b8c8546382a6ea4e8af /units/systemd-readahead-collect.service.in
parentreadahead: avoid activating the journal by accident, log directly to kmsg (diff)
downloadsystemd-08231e5142bff7ace79957835656672ac100031b.tar.xz
systemd-08231e5142bff7ace79957835656672ac100031b.zip
readahead: avoid running of readahead services if readahead is already done
Diffstat (limited to 'units/systemd-readahead-collect.service.in')
-rw-r--r--units/systemd-readahead-collect.service.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/units/systemd-readahead-collect.service.in b/units/systemd-readahead-collect.service.in
index 7fe20d5c5c..6ad286b290 100644
--- a/units/systemd-readahead-collect.service.in
+++ b/units/systemd-readahead-collect.service.in
@@ -11,6 +11,8 @@ DefaultDependencies=no
Wants=systemd-readahead-done.timer
Conflicts=shutdown.target
Before=sysinit.target shutdown.target
+ConditionFileExists=!/run/systemd/readahead/cancel
+ConditionFileExists=!/run/systemd/readahead/done
ConditionVirtualization=no
[Service]