mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update index.py
This commit is contained in:
@@ -76,11 +76,16 @@ def getFpmFile(version):
|
||||
|
||||
def status(version):
|
||||
# ps -ef|grep 'php/81' |grep -v grep | grep -v python | awk '{print $2}
|
||||
cmd = "ps -ef|grep 'php/" + version + "' |grep -v grep | grep -v python | awk '{print $2}'"
|
||||
data = mw.execShell(cmd)
|
||||
if data[0] == '':
|
||||
return 'stop'
|
||||
return 'start'
|
||||
# cmd = "ps -ef|grep 'php/" + version + "' |grep -v grep | grep -v python | awk '{print $2}'"
|
||||
# data = mw.execShell(cmd)
|
||||
# if data[0] == '':
|
||||
# return 'stop'
|
||||
# return 'start'
|
||||
sock_file = "/run/php/php${version:0:1}.${version:1:2}-fpm.sock"
|
||||
if os.path.exists(sock_file):
|
||||
return 'start'
|
||||
return 'stop'
|
||||
|
||||
|
||||
|
||||
def contentReplace(content, version):
|
||||
|
||||
Reference in New Issue
Block a user