summaryrefslogtreecommitdiff
path: root/system/preload/rc.preload
diff options
context:
space:
mode:
Diffstat (limited to 'system/preload/rc.preload')
-rw-r--r--system/preload/rc.preload6
1 files changed, 3 insertions, 3 deletions
diff --git a/system/preload/rc.preload b/system/preload/rc.preload
index efe8802a2f..b7e08b8936 100644
--- a/system/preload/rc.preload
+++ b/system/preload/rc.preload
@@ -10,10 +10,10 @@ free -m | awk '/Mem:/ {exit ($2 >= ('256'))?0:1}' || exit 1
start() {
if [ -x /usr/sbin/preload ]; then
- if [ ! -f /var/run/preload/preload.lock ]; then
+ if [ ! -f /var/run/preload.lock ]; then
echo "Starting preload daemon: /usr/sbin/preload "
/usr/sbin/preload $PRELOAD_OPTS && \
- touch /var/run/preload/preload.lock
+ touch /var/run/preload.lock
else
echo "/usr/sbin/preload is already running. Exiting."
exit 1
@@ -28,7 +28,7 @@ start() {
stop() {
echo "Stopping preload daemon... "
killall -9 preload
- rm -f /var/run/preload/preload.lock
+ rm -f /var/run/preload.lock
}
restart() {