-
Notifications
You must be signed in to change notification settings - Fork 3
/
supervisord.conf
48 lines (39 loc) · 1.8 KB
/
supervisord.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
[supervisord]
pidfile=%(ENV_SUPERVISORD_RUNDIR)s/supervisord.pid
logfile=%(ENV_SUPERVISORD_LOGDIR)s/supervisord.log
childlogdir=%(ENV_SUPERVISORD_LOGDIR)s/
minfds=%(ENV_SUPERVISORD_MINFDS)s ; number of startup file descriptors
minprocs=%(ENV_SUPERVISORD_MINPROCS)s ; number of process descriptors
logfile_maxbytes=50MB ; maximum size of logfile before rotation
logfile_backups=10 ; number of backed up logfiles
loglevel=error ; info, debug, warn, trace
nodaemon=false ; run supervisord as a daemon
user=root ; default user
[supervisorctl]
serverurl=unix://%(ENV_SUPERVISORD_UNIX_HTTP_SERVER_FILE)s
[unix_http_server]
file=%(ENV_SUPERVISORD_UNIX_HTTP_SERVER_FILE)s
chmod=0777
chown=root:root
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[program:kafka]
user=%(ENV_KAFKA_USER)s
command=%(ENV_KAFKA_HOME)s/bin/kafka-server-start.sh %(ENV_KAFKA_CONFIG_FILE)s
numprocs = 1
numprocs_start = 0
directory = %(ENV_SUPERVISORD_WORK_DIR)s
autostart = false
autorestart = true
startsecs = 10
startretries = 5
stopsignal = TERM
stopwaitsecs = 10
redirect_stderr = true
stdout_logfile = %(ENV_SUPERVISORD_LOGDIR)s/kafka.log
stdout_logfile_maxbytes = 1MB
stdout_logfile_backups = 10
stdout_capture_maxbytes = 1MB
stderr_logfile = %(ENV_SUPERVISORD_LOGDIR)s/kafka.log
stopasgroup = true
killasgroup = true