From dc850e386f19d97d80efd77302425433a204d08b Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 2 Dec 2022 17:47:10 +0100 Subject: Use supervisor instead of systemd script for celery daemon --- install/monit.template | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'install/monit.template') 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 -- cgit v1.2.3