diff --git a/templates/monit.j2 b/templates/monit.j2 index 3b32d4c..c107b1c 100644 --- a/templates/monit.j2 +++ b/templates/monit.j2 @@ -1,6 +1,6 @@ check process {{ zammad_rails_service | splitext | first }} with pidfile {{ zammad_home }}/tmp/pids/server.pid start program = "/usr/sbin/service {{ zammad_rails_service | splitext | first }} start" - stop program = "/usr/sbin/service {{ zammad-rails_service | splitext | first }} stop" + stop program = "/usr/sbin/service {{ zammad_rails_service | splitext | first }} stop" 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 @@ -15,7 +15,7 @@ check process {{ zammad_websocket_service | splitext | first }} check process {{ zammad_worker_service | splitext | first }} matching "script/background-worker.rb start" - start program = "/usr/sbin/service {{ zammad-worker_service | splitext | first }} start" + start program = "/usr/sbin/service {{ zammad_worker_service | splitext | first }} start" stop program = "/usr/sbin/service {{ zammad_worker_service | splitext | first }} stop" if 2 restarts within 3 cycles then timeout if cpu usage > 95% for 3 cycles then restart