From 25d4879815125aab2e80dbc75ce1ba1deb2106c6 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 22 Jul 2019 17:15:16 +0200 Subject: Monit template for celery --- install/monit.template | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 install/monit.template (limited to 'install/monit.template') diff --git a/install/monit.template b/install/monit.template new file mode 100644 index 000000000..a791927f5 --- /dev/null +++ b/install/monit.template @@ -0,0 +1,5 @@ +check program celery-#APP_NAME# with path "/bin/systemctl --quiet is-active celery-#APP_NAME#" + start program "/bin/systemctl --quiet start celery-#APP_NAME#" + stop program "/bin/systemctl --quiet stop celery-#APP_NAME#" + if status != 0 then restart + if 5 restarts within 5 cycles then timeout -- cgit v1.2.3