From 06a3956a2ff31943bbd8c989df9033617135f703 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Wed, 27 May 2009 13:20:35 +0000 Subject: [PATCH] LuCId fixes --- libs/lucid/luasrc/lucid.lua | 2 +- libs/lucid/root/etc/config/lucid | 2 +- libs/lucid/root/etc/init.d/lucid | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/lucid/luasrc/lucid.lua b/libs/lucid/luasrc/lucid.lua index d72bf25ef..34452a599 100644 --- a/libs/lucid/luasrc/lucid.lua +++ b/libs/lucid/luasrc/lucid.lua @@ -176,7 +176,7 @@ end function create_process(threadcb, waitcb) local threadlimit = tonumber(cursor:get(UCINAME, "main", "threadlimit")) - if threadlimit and #tpids >= tcount then + if threadlimit and tcount >= threadlimit then nixio.syslog("warning", "Unable to create thread: process limit reached") return nil end diff --git a/libs/lucid/root/etc/config/lucid b/libs/lucid/root/etc/config/lucid index bfbb4ca1d..7baf6db3e 100644 --- a/libs/lucid/root/etc/config/lucid +++ b/libs/lucid/root/etc/config/lucid @@ -1,7 +1,7 @@ config lucid main option pollinterval 15000 option threadlimit 25 - option daemon 1 + option daemonize 1 option debug 0 list supports tcpserver list supports server diff --git a/libs/lucid/root/etc/init.d/lucid b/libs/lucid/root/etc/init.d/lucid index 125dc7bf5..1b2b04ed4 100755 --- a/libs/lucid/root/etc/init.d/lucid +++ b/libs/lucid/root/etc/init.d/lucid @@ -9,13 +9,13 @@ set -e start() { echo -n "Starting $DESC: $NAME" - lua -e 'require "luci.lucid".start()' + lua -lluci.lucid -e 'luci.lucid.start()' echo "." } stop() { echo -n "Stopping $DESC: $NAME" - lua -e 'require "luci.lucid".stop()' + lua -lluci.lucid -e 'luci.lucid.stop()' echo "." } -- 2.25.1