summaryrefslogtreecommitdiffstats
path: root/system/preload/doinst.sh
diff options
context:
space:
mode:
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 3fe2d3f767..116177f27b 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