02.08.2019, 12:09
Hi
I do the same thing. I've primary and backup LM.
My code for enabling/disabling schedulers is here:
I do the same thing. I've primary and backup LM.
My code for enabling/disabling schedulers is here:
Code:
function _clearschedulers()
local files = io.ls('/tmp')
for _, file in ipairs(files) do
if file:find('lm-scheduler-', 1, true) then
os.remove('/tmp/' .. file)
end
end
end
function ecl_enable_all_schedulers(ai)
-- ai must be 0 - inactivate 1 - activate
db:update('schedulers', {
active = ai
})
_clearschedulers()
end
LM5Lp, firmware: 2018.08.22 and 2021.12.15, FlashSYS v2, ARMv7 Processor rev 5 (v7l), kernel 4.4.151 and 4.4.259