Skip to content

Instantly share code, notes, and snippets.

@eksiscloud
Last active April 22, 2020 17:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eksiscloud/4df9cbd80185bf7959145e8788bff325 to your computer and use it in GitHub Desktop.
Save eksiscloud/4df9cbd80185bf7959145e8788bff325 to your computer and use it in GitHub Desktop.
Monit: PHP-FPM
# PHP-FPM
check process php7.3-fpm with pidfile /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 failed unixsocket /var/run/php/php7.3-fpm.sock then restart
if 2 restarts within 2 cycles then timeout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment