configuration-templates
/monit/debian/templates/jetty8/jetty8 |
---|
@@ -0,0 +1,5 @@ |
check process jetty8 with pidfile /var/run/jetty8.pid |
start program = "/etc/init.d/jetty8 start" |
stop program = "/etc/init.d/jetty8 stop" |
if failed host localhost port 8983 then restart |
# if 5 restarts within 5 cycles then alert |