luci-base: add sys.init.reload() and sys.init.restart() actions
authorJo-Philipp Wich <jo@mein.io>
Fri, 5 Jul 2019 10:38:01 +0000 (12:38 +0200)
committerJo-Philipp Wich <jo@mein.io>
Sun, 7 Jul 2019 13:36:24 +0000 (15:36 +0200)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/luasrc/sys.lua

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