diff --git a/bin/v-restart-web-backend b/bin/v-restart-web-backend index 2d392c45f..b18f6abc7 100755 --- a/bin/v-restart-web-backend +++ b/bin/v-restart-web-backend @@ -50,7 +50,13 @@ if [ -z "$WEB_BACKEND" ] || [ "$WEB_BACKEND" = 'remote' ]; then fi # Restart system -service $WEB_BACKEND restart >/dev/null 2>&1 +php_fpm=$(ls /etc/init.d/php*-fpm* 2>/dev/null |cut -f 4 -d /) +if [ -z "$php_fpm" ]; then + service $WEB_BACKEND restart >/dev/null 2>&1 +else + service $php_fpm restart >/dev/null 2>&1 +fi + if [ $? -ne 0 ]; then send_email_report check_result $E_RESTART "$WEB_BACKEND restart failed" diff --git a/bin/v-update-web-domain-ssl b/bin/v-update-web-domain-ssl old mode 100644 new mode 100755