mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-18 17:33:31 +00:00
luci-app-ssrserver-python: improve status check (#6167)
Running `ps` via luci.exec directly will cause no output
to compare as `ps` cannot detect the size of screen, adding
`-w` to solve this.
Fixes: 0e285c3037
("add lean's package")
This commit is contained in:
parent
e7115414c8
commit
9a742cfb4e
@ -15,7 +15,7 @@ end
|
||||
|
||||
function act_status()
|
||||
local e={}
|
||||
e.running=luci.sys.call("ps | grep server.py |grep -v grep >/dev/null") == 0
|
||||
e.running=luci.sys.call("ps -w | grep ssrs.json |grep -v grep >/dev/null") == 0
|
||||
luci.http.prepare_content("application/json")
|
||||
luci.http.write_json(e)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user