LuCId fixes
This commit is contained in:
parent
632abafabf
commit
06a3956a2f
3 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 "."
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue