diff --git a/plugins/php-apt/index.py b/plugins/php-apt/index.py index e407821b5..80b08bdd5 100755 --- a/plugins/php-apt/index.py +++ b/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'