Advertisement
Guest User

Untitled

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