supervisord.conf 895 B

12345678910111213141516171819202122232425
  1. [supervisord]
  2. nodaemon = true
  3. environment = GRAPHITE_STORAGE_DIR='/var/lib/graphite/storage',GRAPHITE_CONF_DIR='/var/lib/graphite/conf'
  4. [program:nginx]
  5. command = /usr/sbin/nginx
  6. stdout_logfile = /var/log/supervisor/%(program_name)s.log
  7. stderr_logfile = /var/log/supervisor/%(program_name)s.log
  8. autorestart = true
  9. [program:carbon-cache]
  10. user = www-data
  11. command = /var/lib/graphite/bin/carbon-cache.py --debug start
  12. stdout_logfile = /var/log/supervisor/%(program_name)s.log
  13. stderr_logfile = /var/log/supervisor/%(program_name)s.log
  14. autorestart = true
  15. [program:graphite-webapp]
  16. user = www-data
  17. directory = /var/lib/graphite/webapp
  18. environment = PYTHONPATH='/var/lib/graphite/webapp'
  19. command = /usr/bin/gunicorn_django -b127.0.0.1:8000 -w2 graphite/settings.py
  20. stdout_logfile = /var/log/supervisor/%(program_name)s.log
  21. stderr_logfile = /var/log/supervisor/%(program_name)s.log
  22. autorestart = true