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