From df31056bf23c332b71aecbf650a9c7447aebe813 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 19 Mar 2019 13:55:13 +0100 Subject: Prepare instance script: start celery daemon at the end --- install/ishtar-prepare-instance | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'install/ishtar-prepare-instance') 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' ------------------------------------------------------------------------------- -- cgit v1.2.3