This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Create/Delete scheduler with a script
#7
Hi
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
Reply


Messages In This Thread
RE: Create/Delete scheduler with a script - by Thomas - 02.08.2019, 12:09

Forum Jump: