diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-07-22 17:15:16 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2019-07-22 17:15:40 +0200 |
commit | 25d4879815125aab2e80dbc75ce1ba1deb2106c6 (patch) | |
tree | 1d05aebb9435a6f302a247206cf7a7622c2b6b8d /install/ishtar-prepare-instance | |
parent | 4a35073f6e4239e52da931d314e691d624111926 (diff) | |
download | Ishtar-25d4879815125aab2e80dbc75ce1ba1deb2106c6.tar.bz2 Ishtar-25d4879815125aab2e80dbc75ce1ba1deb2106c6.zip |
Monit template for celery
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 |