Supervisord with django writing separate logs for each program -


i'm using supervisord (through django-supervisor thin wrapper around supervisor) run multiple processes django installation. problem logs written supervisord log file (in example out.log) instead of different log files.

the conf file (cleaned up):

[supervisord] logfile=/var/log/server/ourserver/out.log   [rpcinterface:supervisor] supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface  [supervisorctl] serverurl=unix:///var/run/supervisor.sock ; use unix:// url  unix socket   [program:webserver] command=uwsgi uwsgi.ini stout_logfile = /var/log/server/ourserver/django.log redirect_stderr = true ;autostart = true ;autorestart = true  [program:celery] command=celery worker -b -a server.celery --loglevel=info --concurrency=4 ;autostart = true ;autorestart = true stout_logfile = /var/logs/server/ourserver/celery.log redirect_stderr = true  [program:updater] command=python -u updater.py ;directory=/home/ubuntu/server/ourserver ;autostart = true ;autorestart = true stout_logfile = /var/logs/server/ourserver/updater.log redirect_stderr = true 

replace stout_logfile stdout_logfile


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -