summaryrefslogtreecommitdiff
path: root/install/ishtar-prepare-instance
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-03-19 13:55:13 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-06-17 13:21:27 +0200
commit4c547a73e20875febf7f98779b51a808c92c4eb9 (patch)
tree5f50835bcca73bab2b6b4ade5bb6dd2188fdeff1 /install/ishtar-prepare-instance
parent7045eb8c2c3ca96166472feaca0c28e0b252d441 (diff)
downloadIshtar-4c547a73e20875febf7f98779b51a808c92c4eb9.tar.bz2
Ishtar-4c547a73e20875febf7f98779b51a808c92c4eb9.zip
Prepare instance script: start celery daemon at the end
Diffstat (limited to 'install/ishtar-prepare-instance')
-rwxr-xr-xinstall/ishtar-prepare-instance9
1 files changed, 7 insertions, 2 deletions
diff --git a/install/ishtar-prepare-instance b/install/ishtar-prepare-instance
index c8d944dc9..df7b72088 100755
--- a/install/ishtar-prepare-instance
+++ b/install/ishtar-prepare-instance
@@ -278,8 +278,6 @@ EOF
"install/celery.service.template" > \
"/etc/systemd/system/celery-"$INSTANCE".service"
systemctl daemon-reload
- systemctl enable celery-$INSTANCE
- systemctl start celery-$INSTANCE
fi
### __init__.py
@@ -376,6 +374,13 @@ EOF
cd ..
$PYTHON ./install/post_install_script.py $INSTANCE $URL
+ ### Celery - start worker
+
+ if [ -v USE_CELERY ]; then
+ systemctl enable celery-$INSTANCE
+ systemctl start celery-$INSTANCE
+ fi
+
cat >&2 <<-'EOF'
-------------------------------------------------------------------------------