~uphackers/uphack/event.d

« back to all changes in this revision

Viewing changes to readahead

  • Committer: root
  • Date: 2008-03-19 14:51:08 UTC
  • Revision ID: root@blackbook-20080319145108-9lzaud8h1m63ny57
Initial import into bzr.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
description     "Readahead files into memory"
 
2
author          "Scott James Remnant"
 
3
 
 
4
start on stopped readahead-watch ok
 
5
 
 
6
console output
 
7
 
 
8
pre-start script
 
9
    # If "profile" is placed on the kernel command-line we watch the boot
 
10
    # sequence and generate new readahead lists, rather than read the lists
 
11
    if grep -q "profile" /proc/cmdline; then
 
12
        stop
 
13
    fi
 
14
   echo "*** PERFORMING READAHEAD ***"
 
15
end script
 
16
 
 
17
exec /sbin/readahead-list -s /etc/readahead/boot