Advertisement
Guest User

Untitled

a guest
Jan 21st, 2017
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 8.18 KB | None | 0 0
  1. [unix_http_server]
  2. file=/tmp/supervisor.sock   ; (the path to the socket file)
  3. chmod=0777                 ; socket file mode (default 0700)
  4. ;chown=nobody:nogroup       ; socket file uid:gid owner
  5. username=www-data              ; (default is no username (open server))
  6. password=www-data              ; (default is no password (open server))
  7.  
  8. ;[inet_http_server]         ; inet (TCP) server disabled by default
  9. ;port=127.0.0.1:9001        ; (ip_address:port specifier, *:port for all iface)
  10. ;username=user              ; (default is no username (open server))
  11. ;password=123               ; (default is no password (open server))
  12.  
  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. ;umask=022                   ; (process file creation umask;default 022)
  23. ;user=chrism                 ; (default is current user, required if root)
  24. ;identifier=supervisor       ; (supervisord identifier, default is 'supervisor')
  25. ;directory=/tmp              ; (default is not to cd during start)
  26. ;nocleanup=true              ; (don't clean up tempfiles at start;default false)
  27. ;childlogdir=/tmp            ; ('AUTO' child log dir, default $TEMP)
  28. ;environment=KEY=value       ; (key value pairs to add to environment)
  29. ;strip_ansi=false            ; (strip ansi escape codes in logs; def. false)
  30.  
  31. ; the below section must remain in the config file for RPC
  32. ; (supervisorctl/web interface) to work, additional interfaces may be
  33. ; added by defining them in separate rpcinterface: sections
  34. [rpcinterface:supervisor]
  35. supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
  36.  
  37. [supervisorctl]
  38. serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL  for a unix socket
  39. ;serverurl=http://127.0.0.1:9001 ; use an http:// url to specify an inet socket
  40. username=www-data              ; should be same as http_username if set
  41. password=www-data               ; should be same as http_password if set
  42. ;prompt=mysupervisor         ; cmd line prompt (default "supervisor")
  43. ;history_file=~/.sc_history  ; use readline history if available
  44.  
  45. ; The below sample program section shows all possible program subsection values,
  46. ; create one or more 'real' program: sections to be able to control them under
  47. ; supervisor.
  48.  
  49. ;[program:theprogramname]
  50. ;command=/bin/cat              ; the program (relative uses PATH, can take args)
  51. ;process_name=%(program_name)s ; process_name expr (default %(program_name)s)
  52. ;numprocs=1                    ; number of processes copies to start (def 1)
  53. ;directory=/tmp                ; directory to cwd to before exec (def no cwd)
  54. ;umask=022                     ; umask for process (default None)
  55. ;priority=999                  ; the relative start priority (default 999)
  56. ;autostart=true                ; start at supervisord start (default: true)
  57. ;autorestart=unexpected        ; whether/when to restart (default: unexpected)
  58. ;startsecs=1                   ; number of secs prog must stay running (def. 1)
  59. ;startretries=3                ; max # of serial start failures (default 3)
  60. ;exitcodes=0,2                 ; 'expected' exit codes for process (default 0,2)
  61. ;stopsignal=QUIT               ; signal used to kill process (default TERM)
  62. ;stopwaitsecs=10               ; max num secs to wait b4 SIGKILL (default 10)
  63. ;stopasgroup=false             ; send stop signal to the UNIX process group (default false)
  64. ;killasgroup=false             ; SIGKILL the UNIX process group (def false)
  65. ;user=chrism                   ; setuid to this UNIX account to run the program
  66. ;redirect_stderr=true          ; redirect proc stderr to stdout (default false)
  67. ;stdout_logfile=/a/path        ; stdout log path, NONE for none; default AUTO
  68. ;stdout_logfile_maxbytes=1MB   ; max # logfile bytes b4 rotation (default 50MB)
  69. ;stdout_logfile_backups=10     ; # of stdout logfile backups (default 10)
  70. ;stdout_capture_maxbytes=1MB   ; number of bytes in 'capturemode' (default 0)
  71. ;stdout_events_enabled=false   ; emit events on stdout writes (default false)
  72. ;stderr_logfile=/a/path        ; stderr log path, NONE for none; default AUTO
  73. ;stderr_logfile_maxbytes=1MB   ; max # logfile bytes b4 rotation (default 50MB)
  74. ;stderr_logfile_backups=10     ; # of stderr logfile backups (default 10)
  75. ;stderr_capture_maxbytes=1MB   ; number of bytes in 'capturemode' (default 0)
  76. ;stderr_events_enabled=false   ; emit events on stderr writes (default false)
  77. ;environment=A=1,B=2           ; process environment additions (def no adds)
  78. ;serverurl=AUTO                ; override serverurl computation (childutils)
  79.  
  80. ; The below sample eventlistener section shows all possible
  81. ; eventlistener subsection values, create one or more 'real'
  82. ; eventlistener: sections to be able to handle event notifications
  83. ; sent by supervisor.
  84.  
  85. ;[eventlistener:theeventlistenername]
  86. ;command=/bin/eventlistener    ; the program (relative uses PATH, can take args)
  87. ;process_name=%(program_name)s ; process_name expr (default %(program_name)s)
  88. ;numprocs=1                    ; number of processes copies to start (def 1)
  89. ;events=EVENT                  ; event notif. types to subscribe to (req'd)
  90. ;buffer_size=10                ; event buffer queue size (default 10)
  91. ;directory=/tmp                ; directory to cwd to before exec (def no cwd)
  92. ;umask=022                     ; umask for process (default None)
  93. ;priority=-1                   ; the relative start priority (default -1)
  94. ;autostart=true                ; start at supervisord start (default: true)
  95. ;autorestart=unexpected        ; whether/when to restart (default: unexpected)
  96. ;startsecs=1                   ; number of secs prog must stay running (def. 1)
  97. ;startretries=3                ; max # of serial start failures (default 3)
  98. ;exitcodes=0,2                 ; 'expected' exit codes for process (default 0,2)
  99. ;stopsignal=QUIT               ; signal used to kill process (default TERM)
  100. ;stopwaitsecs=10               ; max num secs to wait b4 SIGKILL (default 10)
  101. ;stopasgroup=false             ; send stop signal to the UNIX process group (default false)
  102. ;killasgroup=false             ; SIGKILL the UNIX process group (def false)
  103. ;user=chrism                   ; setuid to this UNIX account to run the program
  104. ;redirect_stderr=true          ; redirect proc stderr to stdout (default false)
  105. ;stdout_logfile=/a/path        ; stdout log path, NONE for none; default AUTO
  106. ;stdout_logfile_maxbytes=1MB   ; max # logfile bytes b4 rotation (default 50MB)
  107. ;stdout_logfile_backups=10     ; # of stdout logfile backups (default 10)
  108. ;stdout_events_enabled=false   ; emit events on stdout writes (default false)
  109. ;stderr_logfile=/a/path        ; stderr log path, NONE for none; default AUTO
  110. ;stderr_logfile_maxbytes=1MB   ; max # logfile bytes b4 rotation (default 50MB)
  111. ;stderr_logfile_backups        ; # of stderr logfile backups (default 10)
  112. ;stderr_events_enabled=false   ; emit events on stderr writes (default false)
  113. ;environment=A=1,B=2           ; process environment additions
  114. ;serverurl=AUTO                ; override serverurl computation (childutils)
  115.  
  116. ; The below sample group section shows all possible group values,
  117. ; create one or more 'real' group: sections to create "heterogeneous"
  118. ; process groups.
  119.  
  120. ;[group:thegroupname]
  121. ;programs=progname1,progname2  ; each refers to 'x' in [program:x] definitions
  122. ;priority=999                  ; the relative start priority (default 999)
  123.  
  124. ; The [include] section can just contain the "files" setting.  This
  125. ; setting can list multiple files (separated by whitespace or
  126. ; newlines).  It can also contain wildcards.  The filenames are
  127. ; interpreted as relative to this file.  Included files *cannot*
  128. ; include files themselves.
  129.  
  130. ;[include]
  131. ;files = relative/directory/*.ini
  132. files = *.conf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement