-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsupervisord.conf
43 lines (39 loc) · 1.08 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
[supervisord]
nodaemon=true
user=root
logfile=/var/log/supervisor/supervisord.log
logfile_maxbytes=50MB
[program:nanobot]
command=build/nanobot serve
autostart=true
autorestart=true
startretries=5
stdout_events_enabled=true
stderr_events_enabled=true
process_name=nanobot
; # gunicorn termination with localhost was OK but 127.0.0.1 failed
; [program:gunicorn]
; command=gunicorn --chdir /tools --bind 0.0.0.0:5000 tdt_api:app --log-level=info
; autostart=true
; autorestart=true
; startretries=5
; stderr_logfile=/var/log/supervisor/%(program_name)s_stderr.log
; stderr_logfile_maxbytes=10MB
; stdout_logfile=/var/log/supervisor/%(program_name)s_stdout.log
; stdout_logfile_maxbytes=10MB
; process_name=%(program_name)s_%(process_num)02d
; stdout_events_enabled=true
; stderr_events_enabled=true
[program:flask]
command = python3 /tools/tdt_api.py
autostart=true
autorestart=true
startretries=5
stdout_events_enabled=true
stderr_events_enabled=true
process_name=flask
[eventlistener:stdout]
command = supervisor_stdout
buffer_size = 100
events = PROCESS_LOG
result_handler = supervisor_stdout:event_handler