Tag Archives: monit

monit check fpm


grep -r "listen =" /etc/php/*/fpm/pool.d/*
find /run -iname php*.pid

vi /etc/monit/conf.d/php-fpm
check process php-fpm with pidfile /run/php/7/php-fpm.pid
start program = "/usr/sbin/service php7-fpm start" with timeout 60 seconds
stop program = "/usr/sbin/service php7-fpm stop"
if failed unixsocket /var/run/php7-fpm.sock then restart

monit -t
service monit reload