supervisord.conf 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 --log-level=info --log-file=/var/www/karmaworld/var/log/gunicorn.log
  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
  27. [program:beat]
  28. command=/var/www/karmaworld/manage.py celery beat --pidfile=/var/www/karmaworld/var/run/beat.pid -l info
  29. autorestart = true
  30. redirect_stderr = true
  31. stdout_logfile=/var/www/karmaworld/var/log/beat.log
  32. priority = 2
  33. stopsignal = QUIT