-
Notifications
You must be signed in to change notification settings - Fork 8
/
_demo_supervisor_config.ini
57 lines (46 loc) · 1.64 KB
/
_demo_supervisor_config.ini
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
49
50
51
52
53
54
55
56
57
# =============================================================================
# Demonstration 'supervisor' (supervisord) config file for CamCOPS.
# Created by CamCOPS version 2.4.17.
# =============================================================================
# See https://camcops.readthedocs.io/en/latest/administrator/server_configuration.html#start-camcops
[program:camcops_server]
command = /usr/share/camcops/venv/bin/camcops_server serve_gunicorn
--config /etc/camcops/camcops.conf
directory = /usr/share/camcops
environment = MPLCONFIGDIR="/var/cache/camcops/matplotlib"
user = www-data
stdout_logfile = /var/log/supervisor/camcops_server.log
redirect_stderr = true
autostart = true
autorestart = true
startsecs = 30
stopwaitsecs = 60
[program:camcops_workers]
command = /usr/share/camcops/venv/bin/camcops_server launch_workers
--config /etc/camcops/camcops.conf
directory = /usr/share/camcops
environment = MPLCONFIGDIR="/var/cache/camcops/matplotlib"
user = www-data
stdout_logfile = /var/log/supervisor/camcops_workers.log
redirect_stderr = true
autostart = true
autorestart = true
startsecs = 30
stopwaitsecs = 60
startretries = 10
stopasgroup = true
[program:camcops_scheduler]
command = /usr/share/camcops/venv/bin/camcops_server launch_scheduler
--config /etc/camcops/camcops.conf
directory = /usr/share/camcops
environment = MPLCONFIGDIR="/var/cache/camcops/matplotlib"
user = www-data
stdout_logfile = /var/log/supervisor/camcops_scheduler.log
redirect_stderr = true
autostart = true
autorestart = true
startsecs = 30
stopwaitsecs = 60
startretries = 10
[group:camcops]
programs = camcops_server, camcops_workers, camcops_scheduler