summaryrefslogtreecommitdiff
path: root/install/monit.template
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-07-22 17:15:16 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-07-22 17:15:40 +0200
commit25d4879815125aab2e80dbc75ce1ba1deb2106c6 (patch)
tree1d05aebb9435a6f302a247206cf7a7622c2b6b8d /install/monit.template
parent4a35073f6e4239e52da931d314e691d624111926 (diff)
downloadIshtar-25d4879815125aab2e80dbc75ce1ba1deb2106c6.tar.bz2
Ishtar-25d4879815125aab2e80dbc75ce1ba1deb2106c6.zip
Monit template for celery
Diffstat (limited to 'install/monit.template')
-rw-r--r--install/monit.template5
1 files changed, 5 insertions, 0 deletions
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