From 7659865caf9f47576972d5017f69b7fec017fec9 Mon Sep 17 00:00:00 2001 From: midoks Date: Wed, 5 Jul 2023 22:19:44 +0800 Subject: [PATCH] Update lib.sh --- plugins/php-yum/versions/lib.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/php-yum/versions/lib.sh b/plugins/php-yum/versions/lib.sh index 59e391be9..98de39368 100644 --- a/plugins/php-yum/versions/lib.sh +++ b/plugins/php-yum/versions/lib.sh @@ -12,9 +12,9 @@ version=$1 action=$2 if [ -f /lib/systemd/system/php${version}-php-fpm.service ];then - systemctl ${action} php${version} + systemctl ${action} php${version}-php-fpm elif [[ -f /usr/lib/systemd/system/php${version}-php-fpm.service ]]; then - systemctl ${action} php${version} + systemctl ${action} php${version}-php-fpm else $serverPath/php/init.d/php${version} ${action} fi \ No newline at end of file