diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2012-09-07 15:32:57 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2012-09-07 15:32:57 -0500 |
commit | 2aaa31261b7997a3d62142cca8074578e0321d6d (patch) | |
tree | b2ec2ee28d63301e468d7e9b5d9f047acbf835b9 /system/preload/rc.preload | |
parent | a554826da499d9ea6c719369445c5f65ef30aa87 (diff) |
system/preload: Miscellaneous cleanups and fixes
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
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 efe8802a2fa0b..b7e08b8936d73 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() { |