From c54a5dd9f00e484f37a080ae6329581df8cf24b9 Mon Sep 17 00:00:00 2001 From: phil Date: Wed, 7 Jun 2023 23:16:49 +0200 Subject: [PATCH] zammad: Fix name of variable --- templates/monit.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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