django - sudo /etc/init.d/celeryd start generates a "Unknown command: 'celeryd_multi'" -


I am setting up celery to run using variables from your virtual environment, Demunik. But when I run $ sudo /etc/init.d/celeryd , I start the unknown order. Use 'celeryd_multi' type 'manage.py help'

I have set up the following:

CELERYD_CHDIR = "/ home / MyUser / projects / MyProject "ENV_PYTHON =" / home / MyUser / .virtualenvs / MyProject / bin / python "cELERYD_MULTI =" $ ENV_PYTHON $ CELERYD_CHDIR / manage.py celeryd_multi "

when I run from $ /home/myuser/.virtualenvs/myproject/bin/python / home / MyUser / projects /myproject/manage.py celeryd_multi command line, it works fine.

Any thoughts? I'll gladly post any other code to you :)

Thank you!

> the operating proper environment and it pulls packages from /home/myuser/.virtualenvs/myproject /... when you start sudo /etc/init.d/celeryd as you root Cereal which is probably not active in virtualenv /root/.virtualenvs/, then such a thing is also present and thus it looks for Python package in / usr. / Lib / ... where your default python is and consequently your celery is not installed

Your options are either:

  1. Put virtualwen where it is and do not start your user as "myzer" (a pseudo) without using it scripts.
  2. Write a script which su - myzer -ak / bin / sh / home / mysuser / Virtual envoys / my project / bin / serial / / code> to open it as an init.d from myuser.
  3. set the supervisor outside Warchualmen and let it do the dirty work for you

    Consider:

    1. for anything Avoid using the root.
    2. If you do not need celery to start at boot, then it's okay, possibly wrapped in a script.
    3. My simple laugh, but if you do not want to invest an extra 30 minutes to use something else, then works.
    4. The best way to handle all your dragon startup needs, is highly recommended.

Comments

Popular posts from this blog

java - NullPointerException for a 2d Array -

python - Assemble mpeg file unable to play in mediaplayer -

c# - NameSpace Manager or XsltContent to parse aspx page -