if [ -f /etc/init.d/php-fpm-52 ];then
service php-fpm-52 reload
fi
if [ -f /etc/init.d/php-fpm-53 ];then
service php-fpm-53 reload
fi
if [ -f /etc/init.d/php-fpm-54 ];then
service php-fpm-54 reload
fi
if [ -f /etc/init.d/php-fpm-55 ];then
service php-fpm-55 reload
fi
if [ -f /etc/init.d/php-fpm-56 ];then
service php-fpm-56 reload
fi
if [ -f /etc/init.d/php-fpm-70 ];then
service php-fpm-70 reload
fi
if [ -f /etc/init.d/php-fpm-72 ];then
service php-fpm-72 reload
fi
myDate=`date +"%Y-%m-%d %H:%M:$S"`
echo "★[$myDate] PHP內存回收成功!"
echo '------------------------------------------------------------------------------';