summaryrefslogtreecommitdiff
path: root/install/monit.template
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2022-12-02 17:47:10 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2022-12-12 12:23:20 +0100
commitdc850e386f19d97d80efd77302425433a204d08b (patch)
tree4b33f1b6fa495c8b5c9fb9441aee138b2a6f8251 /install/monit.template
parent160ad56539be0a2e27b8ae1ec5575c9f7762b798 (diff)
downloadIshtar-dc850e386f19d97d80efd77302425433a204d08b.tar.bz2
Ishtar-dc850e386f19d97d80efd77302425433a204d08b.zip
Use supervisor instead of systemd script for celery daemon
Diffstat (limited to 'install/monit.template')
-rw-r--r--install/monit.template6
1 files changed, 3 insertions, 3 deletions
diff --git a/install/monit.template b/install/monit.template
index a791927f5..9386b2688 100644
--- a/install/monit.template
+++ b/install/monit.template
@@ -1,5 +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#"
+check program celery-#APP_NAME# with path "/usr/bin/supervisorctl status celery_#APP_NAME# | grep RUNNING"
+ start program "/usr/bin/supervisorctl start celery_#APP_NAME#"
+ stop program "/usr/bin/supervisorctl stop celery_#APP_NAME#"
if status != 0 then restart
if 5 restarts within 5 cycles then timeout