Update index_php_yum.py

pull/624/head
Mr Chen 8 months ago
parent 78acddb043
commit 2b15c77cdc
  1. 13
      plugins/php-yum/index_php_yum.py

@ -75,14 +75,11 @@ def getPhpSocket(version):
def status(version):
'''
sock文件判断是否启动
'''
sock = getPhpSocket(version)
if sock.find(':'):
return status_progress(version)
if not os.path.exists(sock):
# ps -ef|grep 'php/81' |grep -v grep | grep -v python | awk '{print $2}
cmd = "ps -ef|grep 'remi/php" + version + \
"' |grep -v grep | grep -v python | awk '{print $2}'"
data = mw.execShell(cmd)
if data[0] == '':
return 'stop'
return 'start'

Loading…
Cancel
Save