supervisord.conf 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. ; Sample supervisor config file.
  2. ; managed by saltstack
  3. ;
  4. ; For more information on the config file, please see:
  5. ; http://supervisord.org/configuration.html
  6. ;
  7. ; Notes:
  8. ; - Shell expansion ("~" or "$HOME") is not supported. Environment
  9. ; variables can be expanded using this syntax: "%(ENV_HOME)s".
  10. ; - Comments must have a leading space: "a=b ;comment" not "a=b;comment".
  11. [unix_http_server]
  12. file=/tmp/supervisor.sock ; (the path to the socket file)
  13. [supervisord]
  14. logfile=/tmp/supervisord.log ; (main log file;default $CWD/supervisord.log)
  15. logfile_maxbytes=50MB ; (max main logfile bytes b4 rotation;default 50MB)
  16. logfile_backups=10 ; (num of main logfile rotation backups;default 10)
  17. loglevel=info ; (log level;default info; others: debug,warn,trace)
  18. pidfile=/tmp/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
  19. nodaemon=false ; (start in foreground if true;default false)
  20. minfds=1024 ; (min. avail startup file descriptors;default 1024)
  21. minprocs=200 ; (min. avail process descriptors;default 200)
  22. [rpcinterface:supervisor]
  23. supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
  24. [supervisorctl]
  25. serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL for a unix socket
  26. {% for item in supervisor_group %}
  27. [program: {{ item.name }}]
  28. command={{ item.command }}
  29. autostart={{ item.autostart }}
  30. user={{ item.user }}
  31. startsecs=1
  32. startretries=3
  33. stdout_logfile=/opt/supervisor_log/{{ item.name }}.log
  34. stderr_logfile=/opt/supervisor_log/{{ item.name }}_err.log
  35. {% endfor %}