-
-
Notifications
You must be signed in to change notification settings - Fork 123
/
supervisord.conf
165 lines (145 loc) · 4.57 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
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
[unix_http_server]
file=/tmp/supervisor.sock
[supervisord]
pidfile=/tmp/supervisord.pid
minfds=1024
minprocs=200
nodaemon=true
[supervisorctl]
serverurl=unix:///tmp/supervisor.sock
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[program:nginx]
command=/srv/system/run_nginx.sh
stderr_logfile=/dev/stderr
stdout_logfile=/dev/stdout
stderr_logfile_maxbytes=0
stdout_logfile_maxbytes=0
[program:app_server]
command=/srv/system/run_app_server.sh
startsecs=5
environment=PYTHONPATH=/srv
stderr_logfile=/dev/stderr
stdout_logfile=/dev/stdout
stderr_logfile_maxbytes=0
stdout_logfile_maxbytes=0
[program:cron]
command = /bin/bash -c "declare -p | grep -Ev '^declare -[[:alpha:]]*r' > /run/supervisord.env && /usr/sbin/cron -f -L 15"
stderr_logfile=/dev/stderr
stdout_logfile=/dev/stdout
stderr_logfile_maxbytes=0
stdout_logfile_maxbytes=0
autorestart = true
priority = 20
[program:webpack]
command=/srv/system/run_webpack_server.sh
startsecs=0
directory=/srv/ui
stderr_logfile=/dev/stderr
stdout_logfile=/dev/stdout
stderr_logfile_maxbytes=0
stdout_logfile_maxbytes=0
[program:storybook]
command=/srv/system/run_storybook.sh
startsecs=0
directory=/srv/ui
stderr_logfile=/dev/stderr
stdout_logfile=/dev/stdout
stderr_logfile_maxbytes=0
stdout_logfile_maxbytes=0
[program:watch_photos]
command=bash -c "nice -n 16 python /srv/photonix/manage.py watch_photos"
startsecs=10
environment=PYTHONPATH=/srv
stderr_logfile=/dev/stderr
stdout_logfile=/dev/stdout
stderr_logfile_maxbytes=0
stdout_logfile_maxbytes=0
[program:raw_scheduler]
command=bash -c "sleep 5 && nice -n 17 python /srv/photonix/manage.py raw_scheduler"
startsecs=15
environment=PYTHONPATH=/srv
stderr_logfile=/dev/stderr
stdout_logfile=/dev/stdout
stderr_logfile_maxbytes=0
stdout_logfile_maxbytes=0
[program:raw_processor]
command=bash -c "sleep 6 && nice -n 17 python /srv/photonix/manage.py raw_processor"
startsecs=16
environment=PYTHONPATH=/srv
stderr_logfile=/dev/stderr
stdout_logfile=/dev/stdout
stderr_logfile_maxbytes=0
stdout_logfile_maxbytes=0
[program:thumbnail_scheduler]
command=bash -c "sleep 7 && nice -n 17 python /srv/photonix/manage.py thumbnail_processor"
startsecs=17
environment=PYTHONPATH=/srv
stderr_logfile=/dev/stderr
stdout_logfile=/dev/stdout
stderr_logfile_maxbytes=0
stdout_logfile_maxbytes=0
[program:classification_scheduler]
command=bash -c "sleep 8 && nice -n 18 python /srv/photonix/manage.py classification_scheduler"
startsecs=18
environment=PYTHONPATH=/srv
stderr_logfile=/dev/stderr
stdout_logfile=/dev/stdout
stderr_logfile_maxbytes=0
stdout_logfile_maxbytes=0
[program:classification_color_processor]
command=bash -c "sleep 9 && nice -n 19 python /srv/photonix/manage.py classification_color_processor"
startsecs=19
environment=PYTHONPATH=/srv
stderr_logfile=/dev/stderr
stdout_logfile=/dev/stdout
stderr_logfile_maxbytes=0
stdout_logfile_maxbytes=0
[program:classification_location_processor]
command=bash -c "sleep 10 && nice -n 19 python /srv/photonix/manage.py classification_location_processor"
startsecs=20
environment=PYTHONPATH=/srv
stderr_logfile=/dev/stderr
stdout_logfile=/dev/stdout
stderr_logfile_maxbytes=0
stdout_logfile_maxbytes=0
[program:classification_face_detection_processor]
command=bash -c "sleep 11 && nice -n 19 python /srv/photonix/manage.py classification_face_processor"
startsecs=21
environment=PYTHONPATH=/srv
stderr_logfile=/dev/stderr
stdout_logfile=/dev/stdout
stderr_logfile_maxbytes=0
stdout_logfile_maxbytes=0
[program:classification_style_processor]
command=bash -c "sleep 12 && nice -n 19 python /srv/photonix/manage.py classification_style_processor"
startsecs=22
environment=PYTHONPATH=/srv
stderr_logfile=/dev/stderr
stdout_logfile=/dev/stdout
stderr_logfile_maxbytes=0
stdout_logfile_maxbytes=0
[program:classification_object_processor]
command=bash -c "sleep 13 && nice -n 19 python /srv/photonix/manage.py classification_object_processor"
startsecs=23
environment=PYTHONPATH=/srv
stderr_logfile=/dev/stderr
stdout_logfile=/dev/stdout
stderr_logfile_maxbytes=0
stdout_logfile_maxbytes=0
[program:classification_event_processor]
command=bash -c "sleep 14 && nice -n 19 python /srv/photonix/manage.py classification_event_processor"
startsecs=24
environment=PYTHONPATH=/srv
stderr_logfile=/dev/stderr
stdout_logfile=/dev/stdout
stderr_logfile_maxbytes=0
stdout_logfile_maxbytes=0
[program:rescan_photos_periodically]
command=bash -c "sleep 60 && nice -n 16 python /srv/photonix/manage.py rescan_photos_periodically"
startsecs=70
environment=PYTHONPATH=/srv
stderr_logfile=/dev/stderr
stdout_logfile=/dev/stdout
stderr_logfile_maxbytes=0
stdout_logfile_maxbytes=0