-
Notifications
You must be signed in to change notification settings - Fork 573
Expand file tree
/
Copy pathsupervisord-all.conf
More file actions
37 lines (32 loc) · 997 Bytes
/
Copy pathsupervisord-all.conf
File metadata and controls
37 lines (32 loc) · 997 Bytes
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
# Supervisor config that manages both uwsgi and background jobs
# Used when LD_SUPERVISOR_MANAGED is enabled, which also enables logging background tasks output to container logs
[supervisord]
user=root
nodaemon=true
loglevel=info
[program:uwsgi]
command=/bin/bash -c 'uwsgi --http ${LD_SERVER_HOST:-[::]}:${LD_SERVER_PORT:-9090} uwsgi.ini'
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
stderr_logfile=/dev/fd/2
stderr_logfile_maxbytes=0
stopasgroup=true
autorestart=true
[program:jobs]
user=www-data
# setup a temp home folder for the job, required by chromium
environment=HOME=/tmp/home
command=python manage.py run_huey -f
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
stderr_logfile=/dev/fd/2
stderr_logfile_maxbytes=0
stopasgroup=true
autorestart=true
[unix_http_server]
file=/var/run/supervisor.sock
chmod=0700
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl=unix:///var/run/supervisor.sock