Replaced /bin/celeryd by /bin/celery in lazycelery
authorRomain Porte <microjoe@microjoe.org>
Sat, 11 Nov 2017 12:34:59 +0000 (13:34 +0100)
committerBoris Bobrov <breton@cynicmansion.ru>
Sat, 11 Nov 2017 13:04:26 +0000 (16:04 +0300)
On a fresh clone the celeryd executable is not present. This is because
of the celery version migration to celery 4.x. As per celery's
documentation at http://docs.celeryproject.org/en/latest/whatsnew-4.0.html,
celeryd is no longer shipped in this version.

lazystarter.sh

index 0ed22fd8a00b9d3c88bf09731ee36a0ad48dd950..b531b068cdab5f5ec9206d8380d93ba03e297eb0 100755 (executable)
@@ -25,7 +25,7 @@ case "$selfname" in
         ini_prefix=paste
         ;;
     lazycelery.sh)
-        starter_cmd=celeryd
+        starter_cmd=celery
         ini_prefix=mediagoblin
         ;;
     *)
@@ -87,7 +87,7 @@ case "$selfname" in
     lazycelery.sh)
         MEDIAGOBLIN_CONFIG="${ini_file}" \
             CELERY_CONFIG_MODULE=mediagoblin.init.celery.from_celery \
-            $starter -B "$@"
+            $starter worker -B "$@"
         ;;
     *) exit 1 ;;
 esac