Update index.py

pull/891/head
dami 2 weeks ago
parent 3fb8406e7b
commit c551c2ee1a
  1. 4
      plugins/php-apt/index.py

@ -81,8 +81,8 @@ def status(version):
# if data[0] == '':
# return 'stop'
# return 'start'
sock_file = "/run/php/php{}-fpm.sock".format(version)
if os.path.exists(sock_file):
pid_file = "/run/php/php{}-fpm.pid".format(version)
if os.path.exists(pid_file):
return 'start'
return 'stop'

Loading…
Cancel
Save