diff --git a/templates/monit.j2 b/templates/monit.j2 index 18c6d5f..95ded6f 100644 --- a/templates/monit.j2 +++ b/templates/monit.j2 @@ -4,7 +4,6 @@ check process zammad-rails with pidfile {{ zammad_home }}/tmp/pids/server.pid if 2 restarts within 3 cycles then timeout if cpu usage > 95% for 3 cycles then restart if failed host 127.0.0.1 port 3000 for 3 cycles then restart - if 5 restarts within 5 cycles then timeout check process zammad-websocket matching "script/websocket-server.rb -b 127.0.0.1 -p 6042 start" @@ -13,11 +12,9 @@ check process zammad-websocket if 2 restarts within 3 cycles then timeout if cpu usage > 95% for 3 cycles then restart if failed host 127.0.0.1 port 6042 for 3 cycles then restart - if 5 restarts within 5 cycles then timeout check process zammad-scheduler with pidfile {{ zammad_home }}/tmp/pids/scheduler.pid start program = "/usr/sbin/service zammad-scheduler start" stop program = "/usr/sbin/service zammad-scheduler stop" if 2 restarts within 3 cycles then timeout if cpu usage > 95% for 3 cycles then restart - if 5 restarts within 5 cycles then timeout