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

Loading…
Cancel
Save