mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-22 06:14:19 -07:00
Allow php-fpm restart when multiple handlers
This commit is contained in:
parent
d9c91b9b05
commit
6b3131b27a
1 changed files with 9 additions and 6 deletions
|
@ -50,12 +50,15 @@ if [ -z "$WEB_BACKEND" ] || [ "$WEB_BACKEND" = 'remote' ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Restart system
|
# Restart system
|
||||||
php_fpm=$(ls /etc/init.d/php*-fpm* 2>/dev/null |cut -f 4 -d / |head -n 1)
|
php_fpm=$(ls /etc/init.d/php*-fpm* 2>/dev/null |cut -f 4 -d /)
|
||||||
|
for back in $php_fpm
|
||||||
|
do
|
||||||
if [ -z "$php_fpm" ]; then
|
if [ -z "$php_fpm" ]; then
|
||||||
service $WEB_BACKEND restart >/dev/null 2>&1
|
service $WEB_BACKEND restart >/dev/null 2>&1
|
||||||
else
|
else
|
||||||
service $php_fpm restart >/dev/null 2>&1
|
service $back restart >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
send_email_report
|
send_email_report
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue