aboutsummaryrefslogtreecommitdiff
path: root/system/preload/doinst.sh
diff options
context:
space:
mode:
authorRobby Workman <rw@rlworkman.net>2010-05-12 17:45:52 +0200
committerMichiel van Wessem <michiel@slackbuilds.org>2010-05-12 17:45:52 +0200
commit6a1e9b8c8e29ca05677a4fae41d8995aae41e5ff (patch)
tree1f66bbd68be49ab1b1715855fc56093a9782dd73 /system/preload/doinst.sh
parent68b3f43978dee08af0353ed8f704100f324ec009 (diff)
system/preload: Updated for version 0.6.3
Diffstat (limited to 'system/preload/doinst.sh')
-rw-r--r--system/preload/doinst.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/system/preload/doinst.sh b/system/preload/doinst.sh
index 3fe2d3f76797e..116177f27b99b 100644
--- a/system/preload/doinst.sh
+++ b/system/preload/doinst.sh
@@ -18,6 +18,10 @@ if [ -e etc/rc.d/rc.preload ]; then
mv etc/rc.d/rc.preload.new.incoming etc/rc.d/rc.preload.new
fi
+# Create log file and state file if they are not already there
+[ ! -e var/log/preload.log ] && touch var/log/preload.log
+[ ! -e var/lib/preload/preload.state ] && touch var/lib/preload/preload.state
+
config etc/rc.d/rc.preload.new
config etc/preload.conf.new
config etc/logrotate.d/preload.new