diff options
Diffstat (limited to 'system/preload/rc.preload')
-rw-r--r-- | system/preload/rc.preload | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/system/preload/rc.preload b/system/preload/rc.preload index 73f6e0e838df..efe8802a2fa0 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/lock/subsys/preload ]; then + if [ ! -f /var/run/preload/preload.lock ]; then echo "Starting preload daemon: /usr/sbin/preload " /usr/sbin/preload $PRELOAD_OPTS && \ - touch /var/lock/subsys/preload + touch /var/run/preload/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/lock/subsys/preload + rm -f /var/run/preload/preload.lock } restart() { |