Skip to content

Commit b0ba78e

Browse files
fix: add supervisord.conf
1 parent c3057ac commit b0ba78e

File tree

1 file changed

+175
-0
lines changed

1 file changed

+175
-0
lines changed

config/supervisord.conf

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

0 commit comments

Comments
 (0)