module("luci.controller.cronosagent", package.seeall) function index() entry({ "admin", "cronosagent" }, alias("admin", "cronosagent", "configure", "restart"), "CronosAgent") entry({ "admin", "cronosagent", "configure" }, cbi("cronosagent/configure"), "Configure", 10) entry({ "admin", "cronosagent", "restart" }, call("restartCronosAgent"), "Restart", 20) end function restartCronosAgent() luci.sys.call("/etc/init.d/cronosagent restart") luci.http.write("Done!") end