module("CronosAgent", package.seeall) function index() entry({ "CronosAgent", "Configure" }, cbi("CronosAgent/configure"), "Configure", 10) entry({ "CronosAgent", "Restart" }, call("restartCronosAgent"), "Restart", 20) end function restartCronosAgent() luci.sys.init.stop("cronosagent") luci.sys.init.start("cronosagent") end