Ticket #5545: 0001-Replaced-bin-celeryd-by-bin-celery-in-lazycelery.patch

File 0001-Replaced-bin-celeryd-by-bin-celery-in-lazycelery.patch, 1.1 KB (added by microjoe, 3 years ago)
  • lazystarter.sh

    From a441420a0562f451fd8bfc2d35207ed0e57bf278 Mon Sep 17 00:00:00 2001
    From: Romain Porte <microjoe@microjoe.org>
    Date: Sat, 11 Nov 2017 13:34:59 +0100
    Subject: [PATCH] Replaced /bin/celeryd by /bin/celery in lazycelery
    
    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 | 4 ++--
     1 file changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/lazystarter.sh b/lazystarter.sh
    index 0ed22fd8..b531b068 100755
    a b case "$selfname" in 
    2525        ini_prefix=paste
    2626        ;;
    2727    lazycelery.sh)
    28         starter_cmd=celeryd
     28        starter_cmd=celery
    2929        ini_prefix=mediagoblin
    3030        ;;
    3131    *)
    case "$selfname" in 
    8787    lazycelery.sh)
    8888        MEDIAGOBLIN_CONFIG="${ini_file}" \
    8989            CELERY_CONFIG_MODULE=mediagoblin.init.celery.from_celery \
    90             $starter -B "$@"
     90            $starter worker -B "$@"
    9191        ;;
    9292    *) exit 1 ;;
    9393esac