You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

supervisord.conf 1.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. [unix_http_server]
  2. file=/tmp/supervisor.sock
  3. [supervisord]
  4. logfile=/tmp/supervisord.log
  5. logfile_maxbytes=50MB
  6. logfile_backups=10
  7. loglevel=info
  8. pidfile=/tmp/supervisord.pid
  9. nodaemon=true
  10. [rpcinterface:supervisor]
  11. supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
  12. [supervisorctl]
  13. serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL for a unix socket
  14. [program:nginx]
  15. command=/usr/sbin/nginx -g 'daemon off;'
  16. stdout_events_enabled=true
  17. stderr_events_enabled=true
  18. [program:setup]
  19. command=/bin/bash /scripts/setup
  20. stdout_events_enabled=true
  21. stderr_events_enabled=true
  22. autorestart=unexpected
  23. environment=HOME="/srv/mediagoblin.example.org"
  24. [program:celery]
  25. command=/bin/bash /scripts/celery
  26. user=mediagoblin
  27. stdout_events_enabled=true
  28. stderr_events_enabled=true
  29. autorestart=unexpected
  30. environment=HOME="/srv/mediagoblin.example.org",USER="mediagoblin"
  31. [program:mediagoblin]
  32. command=/bin/bash /scripts/mediagoblin
  33. user=mediagoblin
  34. stdout_events_enabled=true
  35. stderr_events_enabled=true
  36. autorestart=unexpected
  37. environment=HOME="/srv/mediagoblin.example.org",USER="mediagoblin"
  38. [eventlistener:stdout]
  39. command = supervisor_stdout
  40. buffer_size = 100
  41. events = PROCESS_LOG
  42. result_handler = supervisor_stdout:event_handler