7 lignes
203 o
Bash
7 lignes
203 o
Bash
#!/usr/bin/env bash
|
|
phpver=8.3
|
|
timeout 30 sudo -u www-data cgi-fcgi -bind -connect /var/run/php/php${phpver}-fpm.sock >/dev/null 2>&1
|
|
if [ $? -ne 0 ]
|
|
then
|
|
/usr/sbin/service php${phpver}-fpm restart
|
|
fi
|