supervisord.conf 888 B

1234567891011121314151617181920212223242526272829303132
  1. [supervisord]
  2. logfile = /var/www/karmaworld/var/log/supervisord.log
  3. logfile_maxbytes = 10MB
  4. logfile_backups = 5
  5. loglevel = info
  6. pidfile = /var/www/karmaworld/var/run/supervisord.pid
  7. [supervisorctl]
  8. serverurl = unix:///var/www/karmaworld/var/run/supervisor.sock
  9. [unix_http_server]
  10. file = /var/www/karmaworld/var/run/supervisor.sock
  11. chmod = 0777
  12. [rpcinterface:supervisor]
  13. supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
  14. [program:gunicorn]
  15. command=/var/www/karmaworld/manage.py run_gunicorn -c confs/prod/gunicorn.conf
  16. autostart = true
  17. autorestart = true
  18. redirect_stderr = true
  19. stopsignal = QUIT
  20. [program:celeryd]
  21. command=/var/www/karmaworld/manage.py celery worker --pidfile=/var/www/karmaworld/var/run/celeryd.pid -l info
  22. autorestart = true
  23. redirect_stderr = true
  24. stdout_logfile=/var/www/karmaworld/var/log/celeryd.log
  25. priority = 2
  26. stopsignal = QUIT