From 33110fa482efa059c3fea7479dae1dae70266736 Mon Sep 17 00:00:00 2001 From: phil Date: Tue, 20 Dec 2022 19:44:32 +0100 Subject: [PATCH] Starte alle Minion-Instanzen neu --- templates/monit.j2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/monit.j2 b/templates/monit.j2 index 794e9f5..fe8b3ee 100644 --- a/templates/monit.j2 +++ b/templates/monit.j2 @@ -2,7 +2,7 @@ check process lstu with pidfile {{ lstu.path }}/script/hypnotoad.pid start program = "/bin/systemctl start {{ lstu_service }}" stop program = "/bin/systemctl stop {{ lstu_service }}" if failed host {{ ansible_default_ipv4.address }} port 8080 with timeout 15 seconds for 3 times within 4 cycles then restart - + check process lstu-minion matching "perl script/application minion worker" - start program = "/bin/systemctl start {{ minion_service }}" - stop program = "/bin/systemctl stop {{ minion_service }}" + start program = "/bin/systemctl start {{ minion_service }}@*.service" + stop program = "/bin/systemctl stop {{ minion_service }}@*.service"