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)
|
function create_process(threadcb, waitcb)
|
||||||
local threadlimit = tonumber(cursor:get(UCINAME, "main", "threadlimit"))
|
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")
|
nixio.syslog("warning", "Unable to create thread: process limit reached")
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
config lucid main
|
config lucid main
|
||||||
option pollinterval 15000
|
option pollinterval 15000
|
||||||
option threadlimit 25
|
option threadlimit 25
|
||||||
option daemon 1
|
option daemonize 1
|
||||||
option debug 0
|
option debug 0
|
||||||
list supports tcpserver
|
list supports tcpserver
|
||||||
list supports server
|
list supports server
|
||||||
|
|
|
@ -9,13 +9,13 @@ set -e
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
echo -n "Starting $DESC: $NAME"
|
echo -n "Starting $DESC: $NAME"
|
||||||
lua -e 'require "luci.lucid".start()'
|
lua -lluci.lucid -e 'luci.lucid.start()'
|
||||||
echo "."
|
echo "."
|
||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
stop() {
|
||||||
echo -n "Stopping $DESC: $NAME"
|
echo -n "Stopping $DESC: $NAME"
|
||||||
lua -e 'require "luci.lucid".stop()'
|
lua -lluci.lucid -e 'luci.lucid.stop()'
|
||||||
echo "."
|
echo "."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue