Hi all,

/.readahead exists means activated readahead-replay will run. Meanwhile if
readahead-collect runs, all replayed blocks will be collected -- size of
/.readahead will increase(e.g. in case of services update).



-- 
Regards,

- cee1
From 6afc8f53fa026f099d133df75e5326eb1cf7af35 Mon Sep 17 00:00:00 2001
From: cee1 <fykc...@gmail.com>
Date: Thu, 14 Apr 2011 10:54:37 +0800
Subject: [PATCH 2/2] Not start readahead-collect if /.readahead exists

/.readahead exists means activated readahead-replay will run. Meanwhile
if readahead-collect runs, all replayed blocks will be collected -- size
of /.readahead will increase(e.g. in case of services update).
---
 units/systemd-readahead-collect.service.in |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/units/systemd-readahead-collect.service.in b/units/systemd-readahead-collect.service.in
index 1a66f9f..b3e3c27 100644
--- a/units/systemd-readahead-collect.service.in
+++ b/units/systemd-readahead-collect.service.in
@@ -11,6 +11,7 @@ DefaultDependencies=no
 Wants=systemd-readahead-done.timer
 Conflicts=shutdown.target
 Before=sysinit.target shutdown.target
+ConditionPathExists=!/.readahead
 
 [Service]
 Type=notify
-- 
1.7.4.1

_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to