diff options
Diffstat (limited to 'install/ishtar-prepare-instance')
-rwxr-xr-x | install/ishtar-prepare-instance | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/install/ishtar-prepare-instance b/install/ishtar-prepare-instance index bd235d5a2..59aa2f0e2 100755 --- a/install/ishtar-prepare-instance +++ b/install/ishtar-prepare-instance @@ -279,6 +279,9 @@ EOF sed -s "s|example_project|$INSTANCE|g;" \ $INSTANCE"/celery_app.py.sample" > \ $INSTANCE"/celery_app.py" + sed -s "s|#APP_NAME#|$INSTANCE|g;" \ + "install/monit.template" > \ + "/etc/monit/conf-available/celery-"$INSTANCE systemctl daemon-reload fi @@ -411,6 +414,23 @@ EOF echo "" echo " And then enjoy ishtar!" echo "" + + if [ -v USE_CELERY ]; then + cat >&2 <<-'EOF' + + If you use monit a configuration file has been generated for the celery + daemon: +EOF + cecho g "/etc/monit/conf-available/celery-"$INSTANCE + cat >&2 <<-'EOF' + + To activate it: +EOF + cecho y "ln -s /etc/monit/conf-available/celery-"$INSTANCE" \\" + cecho y " /etc/monit/conf-enabled/celery-"$INSTANCE + cecho y "systemctl restart monit" + fi + } do_install_instance |