update 2022-08-09 20:22:33

This commit is contained in:
github-actions[bot]
2022-08-09 20:22:33 +08:00
parent 6dae1322e6
commit 15f643fb49
7 changed files with 8 additions and 8 deletions

View File

@@ -39,7 +39,7 @@ end
function status()
local e = {}
e.status = luci.sys.call("ps -w | grep -v grep | grep '/usr/share/ssr_mudb_server/server.py' >/dev/null") == 0
e.status = luci.sys.call("busybox ps -w | grep -v grep | grep '/usr/share/ssr_mudb_server/server.py' >/dev/null") == 0
http_write_json(e)
end

View File

@@ -77,7 +77,7 @@ start_ssr_python_server() {
}
stop_ssr_python_server() {
ps -w | grep "$ssr_path/server.py" | grep -v "grep" | awk '{print $1}' | xargs kill -9 >/dev/null 2>&1 &
busybox ps -w | grep "$ssr_path/server.py" | grep -v "grep" | awk '{print $1}' | xargs kill -9 >/dev/null 2>&1 &
set_ssr_python_crontab 0
del_rule
rm -rf /var/log/$CONFIG.log /var/etc/$CONFIG.include