luci-base: add sys.init.reload() and sys.init.restart() actions

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2019-07-05 12:38:01 +02:00
parent 6665a1d78c
commit c7a9900c87

View file

@ -659,3 +659,11 @@ end
function init.stop(name) function init.stop(name)
return (init_action("stop", name) == 0) return (init_action("stop", name) == 0)
end end
function init.restart(name)
return (init_action("restart", name) == 0)
end
function init.reload(name)
return (init_action("reload", name) == 0)
end