summarylogtreecommitdiffstats
path: root/audiomuse-ai-web.supervisord.conf
blob: fd043a9c744050e72920d936769a49ec620bca4b (plain)
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
[supervisord]
nodaemon=true
logfile=/dev/null
logfile_maxbytes=0
pidfile=/run/audiomuse-ai-web/supervisord.pid
childlogdir=/var/tmp/audiomuse-ai-web

[unix_http_server]
file=/run/audiomuse-ai-web/supervisor.sock
chmod=0600

[supervisorctl]
serverurl=unix:///run/audiomuse-ai-web/supervisor.sock

[rpcinterface:supervisor]
supervisor.rpcinterface_factory=supervisor.rpcinterface:make_main_rpcinterface

[program:flask]
command=/usr/bin/gunicorn --bind %(ENV_FLASK_BIND_HOST)s:8000 --workers 1 --threads 4 --worker-class gthread --keep-alive 5 --timeout 300 --capture-output --error-logfile - --access-logfile - app:app
directory=/usr/lib/audiomuse-ai-web
autostart=true
autorestart=true
stopsignal=TERM
stopasgroup=true
killasgroup=true
stopwaitsecs=5
priority=20
stdout_logfile=/var/log/audiomuse-ai-web/%(program_name)s.stdout.log
stdout_logfile_maxbytes=0
stderr_logfile=/var/log/audiomuse-ai-web/%(program_name)s.stderr.log
stderr_logfile_maxbytes=0

[program:config-restart-listener]
command=/usr/bin/python -u -m taskqueue.control
directory=/usr/lib/audiomuse-ai-web
autostart=true
autorestart=true
stopsignal=TERM
stopasgroup=true
killasgroup=true
stopwaitsecs=5
priority=10
stdout_logfile=/var/log/audiomuse-ai-web/%(program_name)s.stdout.log
stdout_logfile_maxbytes=0
stderr_logfile=/var/log/audiomuse-ai-web/%(program_name)s.stderr.log
stderr_logfile_maxbytes=0