SHARE
TWEET

Untitled

a guest Jun 3rd, 2011 158 Never
  1. [unix_http_server]
  2. file=/tmp/supervisor.sock   ; (the path to the socket file)
  3.  
  4. [supervisord]
  5. logfile=/var/log/supervisord.log ; (main log file;default $CWD/supervisord.log)
  6. logfile_maxbytes=50MB       ; (max main logfile bytes b4 rotation;default 50MB)
  7. logfile_backups=10          ; (num of main logfile rotation backups;default 10)
  8. loglevel=info               ; (log level;default info; others: debug,warn,trace)
  9. pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
  10. nodaemon=false              ; (start in foreground if true;default false)
  11. minfds=1024                 ; (min. avail startup file descriptors;default 1024)
  12. minprocs=200                ; (min. avail process descriptors;default 200)
  13.  
  14. [rpcinterface:supervisor]
  15. supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
  16.  
  17. [supervisorctl]
  18. serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL  for a unix socket
  19.  
  20. [program:myproject]
  21. command=gunicorn_django -c /sites/config/gunicorn.conf.py
  22. directory=/sites/[retracted]/code/main
  23. user=www-data
  24. autostart=true
  25. autorestart=true
  26. stdout_logfile=/sites/[retracted]/logs/supervisord.log
  27. redirect_stderr=true
RAW Paste Data
Top