-
Notifications
You must be signed in to change notification settings - Fork 0
/
supervisor_app.conf
executable file
·48 lines (43 loc) · 1.13 KB
/
supervisor_app.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
[supervisord]
nodaemon=true
user=root
[program:uwsgi]
command = /usr/local/bin/uwsgi --ini /proteome_scout-3/proteome_scout_wsgi.ini
stdout_logfile=/var/log/uwsgi.log
stdout_logfile_maxbytes=0
stderr_logfile=/var/log/uwsgi_debug.log
stderr_logfile_maxbytes=0
autorestart=true
priority=996
[program:nginx]
command = /usr/sbin/nginx
stdout_logfile=/var/log/nginx.log
stdout_logfile_maxbytes=0
stderr_logfile=/var/log/nginx_debug.log
stderr_logfile_maxbytes=0
autorestart=true
priority=997
[program:celery]
directory=/proteome_scout-3/
# user=nobody
numprocs=1
stdout_logfile=/var/log/celery_worker.log
stderr_logfile=/var/log/celery_worker_debug.log
# autostart=true
autorestart=true
# startsecs=10
priority=998
command=celery -A app.celery worker -c 4 --loglevel=DEBUG
[program:celerybeat]
directory=/proteome_scout-3/
# user=nobody
numprocs=1
stdout_logfile=/var/log/celery_beat.log
stderr_logfile=/var/log/celery_beat_debug.log
# autostart=true
autorestart=true
# startsecs=10
; Causes supervisor to send the termination signal (SIGTERM) to the whole process group.
stopasgroup=true
priority=999
command=celery -A app.celery beat --loglevel=DEBUG