|
|
@@ -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"
|