-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsupervisord.conf
48 lines (42 loc) · 1.43 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
[program:NONUWSGI]
priority=1
directory=/home/app/
command=python3 /home/app/nonwsgi.py
process_name=%(program_name)s
startsecs=2
stopsignal=QUIT
stopasgroup=true
killasgroup=true
autorestart=false
startretries=0
[program:UWSGI]
priority=5
command=uwsgi --emperor /home/app/uwsgi.ini
process_name=%(program_name)s
directory=/home/app/
startsecs=5
stopsignal=QUIT
stopasgroup=true
killasgroup=true
autorestart=false
startretries=0
[program:NGINX]
priority=999
command=nginx -g "daemon off;"
process_name=%(program_name)s
[unix_http_server]
file=/var/run/supervisor.sock
[supervisord]
logfile=/var/log/supervisor/supervisord.log ; (main log file;default $CWD/supervisord.log)
logfile_maxbytes=50MB ; (max main logfile bytes b4 rotation;default 50MB)
logfile_backups=10 ; (num of main logfile rotation backups;default 10)
loglevel=info ; (log level;default info; others: debug,warn,trace)
pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
nodaemon=false ; (start in foreground if true;default false)
minfds=1024 ; (min. avail startup file descriptors;default 1024)
minprocs=200 ; (min. avail process descriptors;default 200)
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl=unix:///var/run/supervisor.sock
history_file=~/.sc_history ; use readline history if available