-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathsupervisord.conf
32 lines (25 loc) · 1.49 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
[program:{{ settings.SUPERVISOR.NAME }}-private-gunicorn]
command={{ environ.VIRTUAL_ENV }}/bin/gunicorn --bind {{ settings.SUPERVISOR.PRIVATE_GUNICORN.ADDRESS }} --workers 2 hardware.wsgi:application
environment=NETWORK="private"
[program:{{ settings.SUPERVISOR.NAME }}-public-gunicorn]
command={{ environ.VIRTUAL_ENV }}/bin/gunicorn --bind {{ settings.SUPERVISOR.PUBLIC_GUNICORN.ADDRESS }} --workers 2 hardware.wsgi:application
environment=NETWORK="public"
[program:{{ settings.SUPERVISOR.NAME }}-websocket]
command={{ environ.VIRTUAL_ENV }}/bin/python {{ settings.WEBSOCKET_DAEMON }}
[program:{{ settings.SUPERVISOR.NAME }}-celery]
command={{ environ.VIRTUAL_ENV }}/bin/celery -A hardware worker --purge --loglevel=DEBUG --exclude-queues=low_prio,update
stopwaitsecs=120
[program:{{ settings.SUPERVISOR.NAME }}-celery-low-prio]
command={{ environ.VIRTUAL_ENV }}/bin/celery -A hardware worker --concurrency=1 --purge --loglevel=DEBUG --queues=low_prio
stopwaitsecs=120
[program:{{ settings.SUPERVISOR.NAME }}-celery-update]
command={{ environ.VIRTUAL_ENV }}/bin/celery -A hardware worker --concurrency=1 --purge --loglevel=DEBUG --queues=update
stopwaitsecs=14400
[program:{{ settings.SUPERVISOR.NAME }}-celerybeat]
command={{ environ.VIRTUAL_ENV }}/bin/celery -A hardware beat --loglevel=DEBUG
{% if settings.BITCOIND %}
[program:{{ settings.SUPERVISOR.NAME }}-bitcoind]
command={{ settings.BITCOIND }} -conf={{ settings.BITCOIN_CONF }} -datadir={{ settings.BITCOIN_DIR }}
startsecs=30
stopwaitsecs=120
{% endif %}