mirror of
https://git.shadowkat.net/izaya/OC-PsychOS2.git
synced 2024-11-25 12:42:10 -05:00
made init less syslog-spammy
This commit is contained in:
parent
256e05233a
commit
80eea7142d
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user