diff options
Diffstat (limited to 'install/monit.template')
-rw-r--r-- | install/monit.template | 6 |
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 |