mirror of
https://github.com/Dichgrem/luci-app-nyn.git
synced 2025-12-17 22:22:00 -05:00
style:format
This commit is contained in:
@@ -17,7 +17,7 @@ function index()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function service_control()
|
function service_control()
|
||||||
local sys = require "luci.sys"
|
local sys = require("luci.sys")
|
||||||
local action = luci.http.formvalue("action")
|
local action = luci.http.formvalue("action")
|
||||||
local result = { success = false, message = "" }
|
local result = { success = false, message = "" }
|
||||||
|
|
||||||
@@ -48,8 +48,8 @@ function service_control()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function act_status()
|
function act_status()
|
||||||
local sys = require "luci.sys"
|
local sys = require("luci.sys")
|
||||||
local util = require "luci.util"
|
local util = require("luci.util")
|
||||||
local status = {}
|
local status = {}
|
||||||
|
|
||||||
-- Get status
|
-- Get status
|
||||||
@@ -59,7 +59,6 @@ function act_status()
|
|||||||
if status.running then
|
if status.running then
|
||||||
status.process_info = util.trim(sys.exec("ps | grep -v grep | grep zzz"))
|
status.process_info = util.trim(sys.exec("ps | grep -v grep | grep zzz"))
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Get log
|
-- Get log
|
||||||
local log_file = "/tmp/zzz.log"
|
local log_file = "/tmp/zzz.log"
|
||||||
if nixio.fs.access(log_file) then
|
if nixio.fs.access(log_file) then
|
||||||
|
|||||||
Reference in New Issue
Block a user