forked from bueda/tornado-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsupervisord.conf
54 lines (50 loc) · 1.27 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
49
50
51
52
53
54
[group:app]
programs=app-8001,app-8002,app-8003,app-8004
[program:app-8001]
command=python app.py --port=8001
directory=/opt/web/app/
user=www
autostart=false
autorestart=true
startsecs=5
redirect_stderr=true
stdout_logfile=/var/log/[email protected]
loglevel=info
stdout_logfile_maxbytes=50MB
stdout_logfile_backups=20
[program:app-8002]
command=python app.py --port=8002
directory=/opt/web/app/
user=www
autostart=false
autorestart=true
startsecs=5
redirect_stderr=true
stdout_logfile=/var/log/[email protected]
loglevel=info
stdout_logfile_maxbytes=50MB
stdout_logfile_backups=20
[program:app-8003]
command=python app.py --port=8003
directory=/opt/web/app/
user=www
autostart=false
autorestart=true
startsecs=5
redirect_stderr=true
stdout_logfile=/var/log/[email protected]
loglevel=info
stdout_logfile_maxbytes=50MB
stdout_logfile_backups=20
[program:app-8004]
command=python app.py --port=8004
directory=/opt/web/app/
user=www
autostart=false ; 在 supervisord 启动的时候也自动启动
autorestart=true
startsecs=5 ; 启动 5 秒后没有异常退出, 就当作已经正常启动了
redirect_stderr=true ;把 stderr 重定向到 stdout
stdout_logfile=/var/log/[email protected]
loglevel=info
stdout_logfile_maxbytes=50MB ;stdout 日志文件大小
stdout_logfile_backups=20 ;stdout 日志文件备份数