[Initng-svn] r3637 - initng-ifiles/trunk/initfiles/system
svn at initng.thinktux.net
svn at initng.thinktux.net
Mon Apr 3 00:07:21 CEST 2006
Author: jimmy
Date: Mon Apr 3 00:07:20 2006
New Revision: 3637
Modified:
initng-ifiles/trunk/initfiles/system/readahead.ii
Log:
Fixing.
Modified: initng-ifiles/trunk/initfiles/system/readahead.ii
==============================================================================
--- initng-ifiles/trunk/initfiles/system/readahead.ii (original)
+++ initng-ifiles/trunk/initfiles/system/readahead.ii Mon Apr 3 00:07:20 2006
@@ -1,9 +1,9 @@
-service system/readaead/stopper {
+service system/readahead/stopper {
last;
script start = {
[ -e /var/run/readahead-watch.pid ] && kill `cat /var/run/readahead-watch.pid`
- [ -e /var/run/readahead-watch-boot.pid ] && kill `cat/var/run/readahead.pid`
+ [ -e /var/run/readahead-watch-boot.pid ] && kill `cat /var/run/readahead.pid`
exit 0
};
}
@@ -40,8 +40,8 @@
script daemon = {
# If /usr or /var is mounted on another filesystem, make sure they will also be checked
- mountpoint -q /usr && ngc --instant -u system/readahead/watcher-desktop
- mountpoint -q /var && ngc --instant -u system/readahead/watcher-desktop
+ mountpoint -q /usr && ngc --quiet --instant -u system/readahead/watcher-desktop
+ mountpoint -q /var && ngc --quiet --instant -u system/readahead/watcher-desktop
# Okay, launch watcher.
exec @/usr/sbin/readahead-watch@ -o /etc/readahead/boot;
@@ -74,14 +74,24 @@
if [ -x @/usr/sbin/readahead-list@ ]
then
- # The recent implention uses @/sbin/readhead-watch@ to get the list
+ # The recent implention uses @/sbin/readahead-watch@ to get the list
if [ -e /etc/readahead/boot ]
then
- ngc --instant -u system/readahead/watcher &
- exit 0
+ echo " Reading ahead, from list /etc/readahead/boot "
+ exec @/usr/sbin/readahead-list@ /etc/readahead/boot
+ exit 1
else
# if the watcher exist, generate /etc/readahead/boot
- [ -x @/sbin/readahead-watch@ ] && exec @/sbin/readahead-watch@ -o /etc/readahead/boot
+ ngc --instant -u system/readahead/watcher &
+ # Sleep 4 seconds, so readahead-watcher really stars, and got all.
+ echo "Sleep 4"
+ sleep 1
+ echo "Sleep 3"
+ sleep 1
+ echo "Sleep 2"
+ sleep 1
+ echo "Sleep 1"
+ sleep 1
fi
# This is the old location for readahead file
More information about the Initng-svn
mailing list