LuCId fixes

This commit is contained in:
Steven Barth 2009-05-27 13:20:35 +00:00
parent 632abafabf
commit 06a3956a2f
3 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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

View file

@ -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 "."
}