Estou tentando configurar o Monit para que ele monitore os domínios caso o PHP trave. Exemplo:
check file php7.3-fpm-pidfile with path /var/run/php/php7.3-fpm.pid
start program = "/usr/sbin/service php7.3-fpm start" with timeout 60 seconds
stop program = "/usr/sbin/service php7.3-fpm stop"
if does not exist then restart
if failed unixsocket /run/php/php7.3-fpm-domain.co.uk.sock then restart
if failed unixsocket /run/php/php7.3-fpm-domain2.co.uk.sock then restart
if failed unixsocket /run/php/php7.3-fpm-domain3.co.uk.sock then restart
Como um teste simples:
check file php7.3-fpm-pidfile with path /var/run/php/php7.3-fpm.pid
start program = "/usr/sbin/service php7.3-fpm start" with timeout 60 seconds
stop program = "/usr/sbin/service php7.3-fpm stop"
if does not exist then restart
if failed unixsocket /run/php/php7.3-fpm-domain.co.uk.sock then restart
No entanto, o final falha ao reiniciar o Monit:
/etc/monit/conf-enabled/php-fpm:14: erro de sintaxe 'unixsocket'
Estou no Monit 5.31.0 , que deve ser novo o suficiente para ter a unixsocket
opção. o que estou perdendo?