summaryrefslogtreecommitdiffstats
path: root/resources/config/1/uniontmp/etc/init.inactive/ureadahead-other.conf
diff options
context:
space:
mode:
Diffstat (limited to 'resources/config/1/uniontmp/etc/init.inactive/ureadahead-other.conf')
-rwxr-xr-xresources/config/1/uniontmp/etc/init.inactive/ureadahead-other.conf19
1 files changed, 19 insertions, 0 deletions
diff --git a/resources/config/1/uniontmp/etc/init.inactive/ureadahead-other.conf b/resources/config/1/uniontmp/etc/init.inactive/ureadahead-other.conf
new file mode 100755
index 0000000..d4a3504
--- /dev/null
+++ b/resources/config/1/uniontmp/etc/init.inactive/ureadahead-other.conf
@@ -0,0 +1,19 @@
+# ureadahead - Read required files in advance for other mountpoints
+#
+# Runs the über-readahead daemon which reads data about files required
+# during boot and reads them into the page cache in advance of their
+# use.
+
+description "Read required files in advance (for other mountpoints)"
+
+start on mounted DEVICE=[/UL]* MOUNTPOINT=/?*
+
+# Forks into the background both when reading from disk and when profiling
+# (HDD mode won't fork, but that's ok because we'll wait for it in spawned).
+expect fork
+
+# Don't treat a normal exit after reading finishes as a failure, and
+# don't treat a missing pack file as an error either
+normal exit 0 4
+
+exec /sbin/ureadahead --daemon $MOUNTPOINT