From c551c2ee1ae895a7582174952b5c6f197c659310 Mon Sep 17 00:00:00 2001 From: dami Date: Thu, 7 May 2026 16:55:58 +0800 Subject: [PATCH] Update index.py --- plugins/php-apt/index.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'