supervisord_test.conf 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. ; supervisor config file
  2. [unix_http_server]
  3. file=/var/run/supervisor.sock ; (the path to the socket file)
  4. chmod=0700 ; sockef file mode (default 0700)
  5. chown=root:root ; socket file uid:gid owner
  6. [supervisord]
  7. logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log)
  8. logfile_maxbytes=50MB ; max main logfile bytes b4 rotation; default 50MB
  9. logfile_backups=10 ; # of main logfile backups; 0 means none, default 10
  10. loglevel=info ; log level; default info; others: debug,warn,trace
  11. pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
  12. childlogdir=/var/log/supervisor ; ('AUTO' child log dir, default $TEMP)
  13. nodaemon=false ; start in foreground if true; default false
  14. minfds=1024 ; min. avail startup file descriptors; default 1024
  15. minprocs=200 ; min. avail process descriptors;default 200
  16. ; the below section must remain in the config file for RPC
  17. ; (supervisorctl/web interface) to work, additional interfaces may be
  18. ; added by defining them in separate rpcinterface: sections
  19. [rpcinterface:supervisor]
  20. supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
  21. [supervisorctl]
  22. serverurl=unix:///var/run/supervisor.sock ; use a unix:// URL for a unix socket
  23. ; The [include] section can just contain the "files" setting. This
  24. ; setting can list multiple files (separated by whitespace or
  25. ; newlines). It can also contain wildcards. The filenames are
  26. ; interpreted as relative to this file. Included files *cannot*
  27. ; include files themselves.
  28. [program:ASJPush]
  29. directory=/web/ASJPush
  30. command=gunicorn -w8 -b0.0.0.0:8000 AnsjerPush.test_config.test_wsgi
  31. startsecs=0
  32. stopwaitsecs=0
  33. autostart=true
  34. autorestart=true
  35. stopasgroup=true
  36. killasgroup=true