summaryrefslogtreecommitdiff
path: root/system/preload/rc.preload
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/rc.preload
parent68b3f43978dee08af0353ed8f704100f324ec009 (diff)
downloadslackbuilds-6a1e9b8c8e29ca05677a4fae41d8995aae41e5ff.tar.gz
system/preload: Updated for version 0.6.3
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 73f6e0e838..efe8802a2f 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() {