From aa63311a0bea30a526dd6f03cd52f233098375bc Mon Sep 17 00:00:00 2001 From: tresbailey Date: Tue, 6 Aug 2013 23:13:40 -0400 Subject: [PATCH] Updating the compiled version of celery for RHEL --- bin/control | 2 +- usr/celery | 12 ++++++++---- usr/celeryd | 12 ++++++++---- 3 files changed, 17 insertions(+), 9 deletions(-) diff --git a/bin/control b/bin/control index d0da0d5..0a797cd 100755 --- a/bin/control +++ b/bin/control @@ -5,7 +5,7 @@ PATH=/bin/:/usr/bin:$PATH #source $OPENSHIFT_CARTRIDGE_SDK_BASH function start { - export PYTHONPATH=$OPENSHIFT_CELERY_DIR/conf.d:$OPENSHIFT_REPO_DIR:$PYTHONPATH + export PYTHONPATH=$OPENSHIFT_PYTHON_DIR:$OPENSHIFT_CELERY_DIR/conf.d:$OPENSHIFT_REPO_DIR:$PYTHONPATH usr/celeryd --pidfile=etc/celeryd.pid } diff --git a/usr/celery b/usr/celery index f1dc714..e097ad7 100755 --- a/usr/celery +++ b/usr/celery @@ -1,9 +1,13 @@ -#!/home/tres/Code/Scribble/screnv/bin/python +#!/usr/bin/env python2.7 + +import os; activate_this=os.path.join(os.path.dirname('%svirtenv/bin/' % os.getenv('OPENSHIFT_PYTHON_DIR')), 'activate_this.py'); execfile(activate_this, dict(__file__=activate_this)); del os, activate_this + # EASY-INSTALL-ENTRY-SCRIPT: 'celery==3.0.21','console_scripts','celery' __requires__ = 'celery==3.0.21' import sys from pkg_resources import load_entry_point -sys.exit( - load_entry_point('celery==3.0.21', 'console_scripts', 'celery')() -) +if __name__ == '__main__': + sys.exit( + load_entry_point('celery==3.0.21', 'console_scripts', 'celery')() + ) diff --git a/usr/celeryd b/usr/celeryd index ecb7fc1..7a10cc7 100755 --- a/usr/celeryd +++ b/usr/celeryd @@ -1,9 +1,13 @@ -#!/home/tres/Code/Scribble/screnv/bin/python +#!/usr/bin/env python2.7 + +import os; activate_this=os.path.join(os.path.dirname('%svirtenv/bin/' % os.getenv('OPENSHIFT_PYTHON_DIR')), 'activate_this.py'); execfile(activate_this, dict(__file__=activate_this)); del os, activate_this + # EASY-INSTALL-ENTRY-SCRIPT: 'celery==3.0.21','console_scripts','celeryd' __requires__ = 'celery==3.0.21' import sys from pkg_resources import load_entry_point -sys.exit( - load_entry_point('celery==3.0.21', 'console_scripts', 'celeryd')() -) +if __name__ == '__main__': + sys.exit( + load_entry_point('celery==3.0.21', 'console_scripts', 'celeryd')() + )