made init less syslog-spammy

This commit is contained in:
Izaya 2019-11-09 16:00:46 +11:00
parent 256e05233a
commit 80eea7142d

View File

@ -9,7 +9,6 @@ local function loadlist()
local f = io.open("/boot/cfg/init.txt","rb") local f = io.open("/boot/cfg/init.txt","rb")
if not f then return false end if not f then return false end
for line in f:read("*a"):gmatch("[^\r\n]+") do for line in f:read("*a"):gmatch("[^\r\n]+") do
dprint(line)
pids[line] = -1 pids[line] = -1
end end
f:close() f:close()
@ -18,7 +17,7 @@ loadlist()
while true do while true do
for k,v in pairs(pids) do for k,v in pairs(pids) do
if not os.taskInfo(v) then if not os.taskInfo(v) then
dprint("Starting service "..k) syslog("Starting service "..k)
pids[k] = os.spawnfile("/boot/service/"..k) pids[k] = os.spawnfile("/boot/service/"..k)
end end
end end