forked from mccutchen/kafka-lite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
supervisord.conf
48 lines (41 loc) · 1.36 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
# Config file reference:
# http://supervisord.org/configuration.html
# =============================================================================
# services
# =============================================================================
[program:zookeeper]
command=/opt/kafka/bin/zookeeper-server-start.sh ./zookeeper.properties
priority=0
autostart=true
autorestart=false
redirect_stderr=true
stdout_logfile_maxbytes = 0
stdout_logfile=/dev/null
[program:kafka]
command=/opt/kafka/bin/kafka-server-start.sh ./kafka.properties
priority=1
autostart=true
autorestart=false
redirect_stderr=true
stdout_logfile_maxbytes = 0
stdout_logfile=/dev/null
# =============================================================================
# supervisord config
# =============================================================================
[supervisord]
nodaemon=true
loglevel=warn
[supervisorctl]
serverurl=http://127.0.0.1:9001
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[inet_http_server]
port=127.0.0.1:9001
# kill all processes if any one fails, so the container exits noisily rather
# than continuing to run a broken state.
# https://serverfault.com/a/1039052
[eventlistener:processes]
command=./eventlistener.py
events=PROCESS_STATE,SUPERVISOR_STATE_CHANGE_STOPPING
stderr_logfile_maxbytes = 0
stderr_logfile=/dev/stderr