Run celery as a daemon using root user in Ubuntu

In the latest stable version of celery (3.1.13), you cannot run a celery beat as a daemon (I used supervisord) using root user without a special environment variable. That special variable is C_FORCE_ROOT. So, in your supervisord configuration file, add this:

...
environment=C_FORCE_ROOT="yes"
...

This is not encouraged but in some cases like mine, I just need the system works, and avoiding any extra configuration.

Comments