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/
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

Views All Time
Views All Time
Views Today
Views Today

Leave a Reply

Your email address will not be published. Required fields are marked *