Advertisement
Guest User

Untitled

a guest
Jun 13th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.14 KB | None | 0 0
  1. root@vm838 [~]# cat /etc/supervisord.conf
  2. ; Sample supervisor config file.
  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. ; - Quotes around values are not supported, except in the case of
  11. ; the environment= options as shown below.
  12. ; - Comments must have a leading space: "a=b ;comment" not "a=b;comment".
  13. ; - Command will be truncated if it looks like a config file comment, e.g.
  14. ; "command=bash -c 'foo ; bar'" will truncate to "command=bash -c 'foo ".
  15.  
  16. [unix_http_server]
  17. file=/tmp/supervisor.sock ; the path to the socket file
  18. ;chmod=0700 ; socket file mode (default 0700)
  19. ;chown=nobody:nogroup ; socket file uid:gid owner
  20. ;username=seat ; default is no username (open server)
  21. ;password=seat123 ; default is no password (open server)
  22.  
  23. [inet_http_server] ; inet (TCP) server disabled by default
  24. port=127.0.0.1:9001 ; ip_address:port specifier, *:port for all iface
  25. username=seat ; default is no username (open server)
  26. password=seat123 ; default is no password (open server)
  27.  
  28. [supervisord]
  29. logfile=/tmp/supervisord.log ; main log file; default $CWD/supervisord.log
  30. logfile_maxbytes=50MB ; max main logfile bytes b4 rotation; default 50MB
  31. logfile_backups=10 ; # of main logfile backups; 0 means none, default 10
  32. loglevel=info ; log level; default info; others: debug,warn,trace
  33. pidfile=/tmp/supervisord.pid ; supervisord pidfile; default supervisord.pid
  34. nodaemon=false ; start in foreground if true; default false
  35. minfds=1024 ; min. avail startup file descriptors; default 1024
  36. minprocs=200 ; min. avail process descriptors;default 200
  37. ;umask=022 ; process file creation umask; default 022
  38. ;user=chrism ; default is current user, required if root
  39. ;identifier=supervisor ; supervisord identifier, default is 'supervisor'
  40. ;directory=/tmp ; default is not to cd during start
  41. ;nocleanup=true ; don't clean up tempfiles at start; default false
  42. ;childlogdir=/tmp ; 'AUTO' child log dir, default $TEMP
  43. ;environment=KEY="value" ; key value pairs to add to environment
  44. ;strip_ansi=false ; strip ansi escape codes in logs; def. false
  45.  
  46. ; The rpcinterface:supervisor section must remain in the config file for
  47. ; RPC (supervisorctl/web interface) to work. Additional interfaces may be
  48. ; added by defining them in separate [rpcinterface:x] sections.
  49.  
  50. [rpcinterface:supervisor]
  51. supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
  52.  
  53. ; The supervisorctl section configures how supervisorctl will connect to
  54. ; supervisord. configure it match the settings in either the unix_http_server
  55. ; or inet_http_server section.
  56.  
  57. [supervisorctl]
  58. serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL for a unix socket
  59. ;serverurl=http://127.0.0.1:9001 ; use an http:// url to specify an inet socket
  60. ;username=chris ; should be same as in [*_http_server] if set
  61. ;password=123 ; should be same as in [*_http_server] if set
  62. ;prompt=mysupervisor ; cmd line prompt (default "supervisor")
  63. ;history_file=~/.sc_history ; use readline history if available
  64.  
  65. ; The sample program section below shows all possible program subsection values.
  66. ; Create one or more 'real' program: sections to be able to control them under
  67. ; supervisor.
  68.  
  69. ;[program:theprogramname]
  70. ;command=/bin/cat ; the program (relative uses PATH, can take args)
  71. ;process_name=%(program_name)s ; process_name expr (default %(program_name)s)
  72. ;numprocs=1 ; number of processes copies to start (def 1)
  73. ;directory=/tmp ; directory to cwd to before exec (def no cwd)
  74. ;umask=022 ; umask for process (default None)
  75. ;priority=999 ; the relative start priority (default 999)
  76. ;autostart=true ; start at supervisord start (default: true)
  77. ;startsecs=1 ; # of secs prog must stay up to be running (def. 1)
  78. ;startretries=3 ; max # of serial start failures when starting (default 3)
  79. ;autorestart=unexpected ; when to restart if exited after running (def: unexpected)
  80. ;exitcodes=0,2 ; 'expected' exit codes used with autorestart (default 0,2)
  81. ;stopsignal=QUIT ; signal used to kill process (default TERM)
  82. ;stopwaitsecs=10 ; max num secs to wait b4 SIGKILL (default 10)
  83. ;stopasgroup=false ; send stop signal to the UNIX process group (default false)
  84. ;killasgroup=false ; SIGKILL the UNIX process group (def false)
  85. ;user=chrism ; setuid to this UNIX account to run the program
  86. ;redirect_stderr=true ; redirect proc stderr to stdout (default false)
  87. ;stdout_logfile=/a/path ; stdout log path, NONE for none; default AUTO
  88. ;stdout_logfile_maxbytes=1MB ; max # logfile bytes b4 rotation (default 50MB)
  89. ;stdout_logfile_backups=10 ; # of stdout logfile backups (0 means none, default 10)
  90. ;stdout_capture_maxbytes=1MB ; number of bytes in 'capturemode' (default 0)
  91. ;stdout_events_enabled=false ; emit events on stdout writes (default false)
  92. ;stderr_logfile=/a/path ; stderr log path, NONE for none; default AUTO
  93. ;stderr_logfile_maxbytes=1MB ; max # logfile bytes b4 rotation (default 50MB)
  94. ;stderr_logfile_backups=10 ; # of stderr logfile backups (0 means none, default 10)
  95. ;stderr_capture_maxbytes=1MB ; number of bytes in 'capturemode' (default 0)
  96. ;stderr_events_enabled=false ; emit events on stderr writes (default false)
  97. ;environment=A="1",B="2" ; process environment additions (def no adds)
  98. ;serverurl=AUTO ; override serverurl computation (childutils)
  99.  
  100. ; The sample eventlistener section below shows all possible eventlistener
  101. ; subsection values. Create one or more 'real' eventlistener: sections to be
  102. ; able to handle event notifications sent by supervisord.
  103.  
  104. ;[eventlistener:theeventlistenername]
  105. ;command=/bin/eventlistener ; the program (relative uses PATH, can take args)
  106. ;process_name=%(program_name)s ; process_name expr (default %(program_name)s)
  107. ;numprocs=1 ; number of processes copies to start (def 1)
  108. ;events=EVENT ; event notif. types to subscribe to (req'd)
  109. ;buffer_size=10 ; event buffer queue size (default 10)
  110. ;directory=/tmp ; directory to cwd to before exec (def no cwd)
  111. ;umask=022 ; umask for process (default None)
  112. ;priority=-1 ; the relative start priority (default -1)
  113. ;autostart=true ; start at supervisord start (default: true)
  114. ;startsecs=1 ; # of secs prog must stay up to be running (def. 1)
  115. ;startretries=3 ; max # of serial start failures when starting (default 3)
  116. ;autorestart=unexpected ; autorestart if exited after running (def: unexpected)
  117. ;exitcodes=0,2 ; 'expected' exit codes used with autorestart (default 0,2)
  118. ;stopsignal=QUIT ; signal used to kill process (default TERM)
  119. ;stopwaitsecs=10 ; max num secs to wait b4 SIGKILL (default 10)
  120. ;stopasgroup=false ; send stop signal to the UNIX process group (default false)
  121. ;killasgroup=false ; SIGKILL the UNIX process group (def false)
  122. ;user=chrism ; setuid to this UNIX account to run the program
  123. ;redirect_stderr=false ; redirect_stderr=true is not allowed for eventlisteners
  124. ;stdout_logfile=/a/path ; stdout log path, NONE for none; default AUTO
  125. ;stdout_logfile_maxbytes=1MB ; max # logfile bytes b4 rotation (default 50MB)
  126. ;stdout_logfile_backups=10 ; # of stdout logfile backups (0 means none, default 10)
  127. ;stdout_events_enabled=false ; emit events on stdout writes (default false)
  128. ;stderr_logfile=/a/path ; stderr log path, NONE for none; default AUTO
  129. ;stderr_logfile_maxbytes=1MB ; max # logfile bytes b4 rotation (default 50MB)
  130. ;stderr_logfile_backups=10 ; # of stderr logfile backups (0 means none, default 10)
  131. ;stderr_events_enabled=false ; emit events on stderr writes (default false)
  132. ;environment=A="1",B="2" ; process environment additions
  133. ;serverurl=AUTO ; override serverurl computation (childutils)
  134.  
  135. ; The sample group section below shows all possible group values. Create one
  136. ; or more 'real' group: sections to create "heterogeneous" process groups.
  137.  
  138. ;[group:thegroupname]
  139. ;programs=progname1,progname2 ; each refers to 'x' in [program:x] definitions
  140. ;priority=999 ; the relative start priority (default 999)
  141.  
  142. ; The [include] section can just contain the "files" setting. This
  143. ; setting can list multiple files (separated by whitespace or
  144. ; newlines). It can also contain wildcards. The filenames are
  145. ; interpreted as relative to this file. Included files *cannot*
  146. ; include files themselves.
  147.  
  148. ;[include]
  149. ;files = relative/directory/*.ini
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement