From 08231e5142bff7ace79957835656672ac100031b Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 23 May 2012 03:51:25 +0200 Subject: readahead: avoid running of readahead services if readahead is already done --- units/systemd-readahead-collect.service.in | 2 ++ 1 file changed, 2 insertions(+) (limited to 'units/systemd-readahead-collect.service.in') diff --git a/units/systemd-readahead-collect.service.in b/units/systemd-readahead-collect.service.in index 7fe20d5c5..6ad286b29 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] -- cgit v1.2.3