configuration-templates
/monit/debian/templates/nginx |
---|
@@ -5,12 +5,12 @@ |
check process nginx with pidfile /var/run/nginx.pid |
group www |
group nginx |
depend nginx_bin |
depend nginx_rc |
start program = "/etc/init.d/nginx start" |
stop program = "/etc/init.d/nginx stop" |
# if failed port 80 protocol http request "/" then restart |
if 5 restarts with 5 cycles then timeout |
depend nginx_bin |
depend nginx_rc |
# if 5 restarts with 5 cycles then timeout |
check file nginx_bin with path /usr/sbin/nginx |
group nginx |