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