Advertisement
Guest User

Untitled

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