forked from praekeltfoundation/vumi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
supervisord.develop.conf
503 lines (471 loc) · 16.5 KB
/
supervisord.develop.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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
[unix_http_server]
file=./tmp/supervisor.sock ; (the path to the socket file)
[inet_http_server] ; inet (TCP) server disabled by default
port=*:7010 ; (ip_address:port specifier, *:port for all iface)
[supervisord]
logfile=./logs/supervisord.log ; (main log file;default $CWD/supervisord.log)
logfile_maxbytes=50MB ; (max main logfile bytes b4 rotation;default 50MB)
logfile_backups=10 ; (num of main logfile rotation backups;default 10)
loglevel=info ; (log level;default info; others: debug,warn,trace)
pidfile=./tmp/pids/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
nodaemon=false ; (start in foreground if true;default false)
minfds=1024 ; (min. avail startup file descriptors;default 1024)
minprocs=200 ; (min. avail process descriptors;default 200)
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl=http://127.0.0.1:7010 ; use an http:// url to specify an inet socket
[program:mmmobile_smpp_transport]
numprocs=1
numprocs_start=1
process_name=%(program_name)s_%(process_num)s
command=twistd -n
--pidfile=./tmp/pids/%(program_name)s_%(process_num)s.pid
start_worker
--worker_class=vumi.workers.smpp.transport.SmppTransport
--vhost=/develop
--config=./config/smpp_mmmobile.yaml
--config_smpp_offset=%(process_num)s
--config_smpp_increment=10
environment=DJANGO_SETTINGS_MODULE=environments.develop
stdout_logfile=./logs/%(program_name)s_%(process_num)s.log
stdout_logfile_maxbytes=10MB
stdout_logfile_backups=10
stderr_logfile=./logs/%(program_name)s_%(process_num)s.err
stderr_logfile_maxbytes=10MB
stderr_logfile_backups=10
autorestart=true
[program:smpp_sim_worker]
numprocs=1
numprocs_start=1
process_name=%(program_name)s_%(process_num)s
command=twistd -n
--pidfile=./tmp/pids/%(program_name)s_%(process_num)s.pid
start_worker
--worker_class=vumi.workers.smpp.transport.SmppTransport
--vhost=/develop
--config=./config/smpp_sim.yaml
--config_smpp_offset=%(process_num)s
--config_smpp_increment=10
environment=DJANGO_SETTINGS_MODULE=environments.develop
stdout_logfile=./logs/%(program_name)s_%(process_num)s.log
stdout_logfile_maxbytes=10MB
stdout_logfile_backups=10
stderr_logfile=./logs/%(program_name)s_%(process_num)s.err
stderr_logfile_maxbytes=10MB
stderr_logfile_backups=10
autorestart=true
[program:vumi_test_smsc_worker]
numprocs=1
numprocs_start=1
process_name=%(program_name)s_%(process_num)s
command=twistd -n
--pidfile=./tmp/pids/%(program_name)s_%(process_num)s.pid
start_worker
--worker_class=vumi.workers.smpp.service.SmppService
--vhost=/develop
--config=./config/develop.smpp.vumitestsmsc.yaml
environment=DJANGO_SETTINGS_MODULE=environments.develop
stdout_logfile=./logs/%(program_name)s_%(process_num)s.log
stdout_logfile_maxbytes=10MB
stdout_logfile_backups=10
stderr_logfile=./logs/%(program_name)s_%(process_num)s.err
stderr_logfile_maxbytes=10MB
stderr_logfile_backups=10
autorestart=true
[program:vumi_test_esme_worker]
numprocs=1
numprocs_start=1
process_name=%(program_name)s_%(process_num)s
command=twistd -n
--pidfile=./tmp/pids/%(program_name)s_%(process_num)s.pid
start_worker
--worker_class=vumi.workers.smpp.transport.SmppTransport
--vhost=/develop
--config=./config/develop.smpp.vumitestsmsc.yaml
--config_smpp_offset=%(process_num)s
--config_smpp_increment=10
environment=DJANGO_SETTINGS_MODULE=environments.develop
stdout_logfile=./logs/%(program_name)s_%(process_num)s.log
stdout_logfile_maxbytes=10MB
stdout_logfile_backups=10
stderr_logfile=./logs/%(program_name)s_%(process_num)s.err
stderr_logfile_maxbytes=10MB
stderr_logfile_backups=10
autorestart=true
[program:smpp_worker]
numprocs=1
numprocs_start=2
process_name=%(program_name)s_%(process_num)s
command=twistd -n
--pidfile=./tmp/pids/%(program_name)s_%(process_num)s.pid
start_worker
--worker_class=vumi.workers.smpp.transport.SmppTransport
--vhost=/develop
--config=./config/smpp.yaml
--config_smpp_offset=%(process_num)s
--config_smpp_increment=10
environment=DJANGO_SETTINGS_MODULE=environments.develop
stdout_logfile=./logs/%(program_name)s_%(process_num)s.log
stdout_logfile_maxbytes=10MB
stdout_logfile_backups=10
stderr_logfile=./logs/%(program_name)s_%(process_num)s.err
stderr_logfile_maxbytes=10MB
stderr_logfile_backups=10
autorestart=true
[program:debatch_worker]
numprocs=1
numprocs_start=1
process_name=%(program_name)s_%(process_num)s
command=twistd -n
--pidfile=./tmp/pids/%(program_name)s_%(process_num)s.pid
start_worker
--worker_class=vumi.workers.smpp.worker.SMSBatchWorker
--vhost=/develop
environment=DJANGO_SETTINGS_MODULE=environments.develop
stdout_logfile=./logs/%(program_name)s_%(process_num)s.log
stdout_logfile_maxbytes=10MB
stdout_logfile_backups=10
stderr_logfile=./logs/%(program_name)s_%(process_num)s.err
stderr_logfile_maxbytes=10MB
stderr_logfile_backups=10
autorestart=true
[program:keyword_worker]
numprocs=1
numprocs_start=1
process_name=%(program_name)s_%(process_num)s
command=twistd -n
--pidfile=./tmp/pids/%(program_name)s_%(process_num)s.pid
start_worker
--worker_class=vumi.workers.smpp.worker.SMSKeywordWorker
--vhost=/develop
--config=./config/smpp.yaml
environment=DJANGO_SETTINGS_MODULE=environments.develop
stdout_logfile=./logs/%(program_name)s_%(process_num)s.log
stdout_logfile_maxbytes=10MB
stdout_logfile_backups=10
stderr_logfile=./logs/%(program_name)s_%(process_num)s.err
stderr_logfile_maxbytes=10MB
stderr_logfile_backups=10
autorestart=true
[program:receipt_worker]
numprocs=1
numprocs_start=1
process_name=%(program_name)s_%(process_num)s
command=twistd -n
--pidfile=./tmp/pids/%(program_name)s_%(process_num)s.pid
start_worker
--worker_class=vumi.workers.smpp.worker.SMSReceiptWorker
--vhost=/develop
--config=./config/smpp.yaml
environment=DJANGO_SETTINGS_MODULE=environments.develop
stdout_logfile=./logs/%(program_name)s_%(process_num)s.log
stdout_logfile_maxbytes=10MB
stdout_logfile_backups=10
stderr_logfile=./logs/%(program_name)s_%(process_num)s.err
stderr_logfile_maxbytes=10MB
stderr_logfile_backups=10
autorestart=true
[program:receipt_sim_worker]
numprocs=1
numprocs_start=1
process_name=%(program_name)s_%(process_num)s
command=twistd -n
--pidfile=./tmp/pids/%(program_name)s_%(process_num)s.pid
start_worker
--worker_class=vumi.workers.smpp.worker.SMSReceiptWorker
--vhost=/develop
--config=./config/smpp_sim.yaml
environment=DJANGO_SETTINGS_MODULE=environments.develop
stdout_logfile=./logs/%(program_name)s_%(process_num)s.log
stdout_logfile_maxbytes=10MB
stdout_logfile_backups=10
stderr_logfile=./logs/%(program_name)s_%(process_num)s.err
stderr_logfile_maxbytes=10MB
stderr_logfile_backups=10
autorestart=true
[program:ack_worker]
numprocs=1
numprocs_start=1
process_name=%(program_name)s_%(process_num)s
command=twistd -n
--pidfile=./tmp/pids/%(program_name)s_%(process_num)s.pid
start_worker
--worker_class=vumi.workers.smpp.worker.SMSAckWorker
--vhost=/develop
--config=./config/smpp.yaml
environment=DJANGO_SETTINGS_MODULE=environments.develop
stdout_logfile=./logs/%(program_name)s_%(process_num)s.log
stdout_logfile_maxbytes=10MB
stdout_logfile_backups=10
stderr_logfile=./logs/%(program_name)s_%(process_num)s.err
stderr_logfile_maxbytes=10MB
stderr_logfile_backups=10
autorestart=true
[program:webapp]
numprocs=1
numprocs_start=0
process_name=%(program_name)s_700%(process_num)s
command=twistd -n
--pidfile=./tmp/pids/%(program_name)s_700%(process_num)s.pid
vumi_webapp
--port=700%(process_num)s
--django-settings=environments.develop
stdout_logfile=./logs/%(program_name)s_700%(process_num)s.log
stdout_logfile_maxbytes=10MB
stdout_logfile_backups=10
stderr_logfile=./logs/%(program_name)s_700%(process_num)s.err
stderr_logfile_maxbytes=10MB
stderr_logfile_backups=10
autorestart=true
[program:smpp_simulator]
numprocs=1
numprocs_start=1
process_name=%(program_name)s_700%(process_num)s
command=java
-Djava.net.preferIPv4Stack=true
-Djava.util.logging.config.file=conf/logging.properties
-jar smppsim.jar
../../../config/smppsim.develop.props
stdout_logfile=./logs/%(program_name)s_700%(process_num)s.log
stdout_logfile_maxbytes=10MB
stdout_logfile_backups=10
stderr_logfile=./logs/%(program_name)s_700%(process_num)s.err
stderr_logfile_maxbytes=10MB
stderr_logfile_backups=10
autorestart=true
directory=./utils/smppsim/SMPPSim/
[program:opera_sms_transport]
numprocs=4
numprocs_start=0
process_name=%(program_name)s_%(process_num)s
command=twistd -n
--pidfile=./tmp/pids/%(program_name)s_%(process_num)s.pid
start_worker
--worker_class=vumi.workers.opera.transport.OperaSMSTransport
--vhost=/develop
--config=./config/opera.yaml
environment=DJANGO_SETTINGS_MODULE=environments.develop
stdout_logfile=./logs/%(program_name)s_%(process_num)s.log
stdout_logfile_maxbytes=10MB
stdout_logfile_backups=10
stderr_logfile=./logs/%(program_name)s_%(process_num)s.err
stderr_logfile_maxbytes=10MB
stderr_logfile_backups=10
autorestart=true
[program:opera_receipt_transport]
numprocs=1
numprocs_start=0
process_name=%(program_name)s_%(process_num)s
command=twistd -n
--pidfile=./tmp/pids/%(program_name)s_%(process_num)s.pid
start_worker
--worker_class=vumi.workers.opera.transport.OperaReceiptTransport
--vhost=/develop
--config=./config/opera.yaml
environment=DJANGO_SETTINGS_MODULE=environments.develop
stdout_logfile=./logs/%(program_name)s_%(process_num)s.log
stdout_logfile_maxbytes=10MB
stdout_logfile_backups=10
stderr_logfile=./logs/%(program_name)s_%(process_num)s.err
stderr_logfile_maxbytes=10MB
stderr_logfile_backups=10
autorestart=true
[program:cellulant_transport]
numprocs=1
numprocs_start=1
process_name=%(program_name)s_%(process_num)s
command=twistd -n
--pidfile=./tmp/pids/%(program_name)s_%(process_num)s.pid
start_worker
--worker_class=vumi.workers.httprpc.transport.HttpRpcTransport
--vhost=/develop
--config=./config/cellulant.yaml
environment=DJANGO_SETTINGS_MODULE=environments.develop
stdout_logfile=./logs/%(program_name)s_%(process_num)s.log
stdout_logfile_maxbytes=10MB
stdout_logfile_backups=10
stderr_logfile=./logs/%(program_name)s_%(process_num)s.err
stderr_logfile_maxbytes=10MB
stderr_logfile_backups=10
autorestart=true
[program:mmmobile_transport]
numprocs=1
numprocs_start=1
process_name=%(program_name)s_%(process_num)s
command=twistd -n
--pidfile=./tmp/pids/%(program_name)s_%(process_num)s.pid
start_worker
--worker_class=vumi.workers.httprpc.transport.HttpRpcTransport
--vhost=/develop
--config=./config/http_mmmobile.yaml
environment=DJANGO_SETTINGS_MODULE=environments.develop
stdout_logfile=./logs/%(program_name)s_%(process_num)s.log
stdout_logfile_maxbytes=10MB
stdout_logfile_backups=10
stderr_logfile=./logs/%(program_name)s_%(process_num)s.err
stderr_logfile_maxbytes=10MB
stderr_logfile_backups=10
autorestart=true
[program:integrat_inbound_transport]
numprocs=1
numprocs_start=1
process_name=%(program_name)s_%(process_num)s
command=twistd -n
--pidfile=./tmp/pids/%(program_name)s_%(process_num)s.pid
start_worker
--worker_class=vumi.workers.integrat.transport.IntegratInboundTransport
--vhost=/develop
--config=config/integrat_transport.yaml
environment=DJANGO_SETTINGS_MODULE=environments.development
stdout_logfile=./logs/%(program_name)s_%(process_num)s.log
stdout_logfile_maxbytes=10MB
stdout_logfile_backups=10
stderr_logfile=./logs/%(program_name)s_%(process_num)s.err
stderr_logfile_maxbytes=10MB
stderr_logfile_backups=10
autorestart=true
[program:integrat_outbound_transport]
numprocs=1
numprocs_start=1
process_name=%(program_name)s_%(process_num)s
command=twistd -n
--pidfile=./tmp/pids/%(program_name)s_%(process_num)s.pid
start_worker
--worker_class=vumi.workers.integrat.transport.IntegratOutboundTransport
--vhost=/develop
--config=config/integrat_transport.yaml
environment=DJANGO_SETTINGS_MODULE=environments.development
stdout_logfile=./logs/%(program_name)s_%(process_num)s.log
stdout_logfile_maxbytes=10MB
stdout_logfile_backups=10
stderr_logfile=./logs/%(program_name)s_%(process_num)s.err
stderr_logfile_maxbytes=10MB
stderr_logfile_backups=10
autorestart=true
[program:integrat_worker]
numprocs=1
numprocs_start=0
process_name=%(program_name)s_%(process_num)s
command=twistd -n
--pidfile=./tmp/pids/%(program_name)s_%(process_num)s.pid
start_worker
--worker_class=vumi.workers.integrat.worker.IntegratWorker
--config=config/integrat_worker.yaml
--vhost=/develop
environment=DJANGO_SETTINGS_MODULE=environments.development
stdout_logfile=./logs/%(program_name)s_%(process_num)s.log
stdout_logfile_maxbytes=10MB
stdout_logfile_backups=10
stderr_logfile=./logs/%(program_name)s_%(process_num)s.err
stderr_logfile_maxbytes=10MB
stderr_logfile_backups=10
autorestart=true
[program:integrat_txtalert_worker]
numprocs=1
numprocs_start=0
process_name=%(program_name)s_%(process_num)s
command=twistd -n
--pidfile=./tmp/pids/%(program_name)s_%(process_num)s.pid
start_worker
--worker_class=vumi.campaigns.txtalert.USSDBookingTool
--config=config/integrat_txtalert_worker.yaml
--vhost=/develop
environment=DJANGO_SETTINGS_MODULE=environments.development
stdout_logfile=./logs/%(program_name)s_%(process_num)s.log
stdout_logfile_maxbytes=10MB
stdout_logfile_backups=10
stderr_logfile=./logs/%(program_name)s_%(process_num)s.err
stderr_logfile_maxbytes=10MB
stderr_logfile_backups=10
autorestart=true
[program:integrat_twitter_worker]
numprocs=1
numprocs_start=0
process_name=%(program_name)s_%(process_num)s
command=twistd -n
--pidfile=./tmp/pids/%(program_name)s_%(process_num)s.pid
start_worker
--worker_class=vumi.campaigns.twitter.TwitterUSSDTransport
--config=config/twitter_ussd.yaml
--vhost=/develop
environment=DJANGO_SETTINGS_MODULE=environments.development
stdout_logfile=./logs/%(program_name)s_%(process_num)s.log
stdout_logfile_maxbytes=10MB
stdout_logfile_backups=10
stderr_logfile=./logs/%(program_name)s_%(process_num)s.err
stderr_logfile_maxbytes=10MB
stderr_logfile_backups=10
autorestart=true
[program:integrat_wikipedia_worker]
numprocs=1
numprocs_start=0
process_name=%(program_name)s_%(process_num)s
command=twistd -n
--pidfile=./tmp/pids/%(program_name)s_%(process_num)s.pid
start_worker
--worker_class=vumi.campaigns.wikipedia.WikipediaWorker
--config=config/wikipedia_ussd.yaml
--vhost=/develop
environment=DJANGO_SETTINGS_MODULE=environments.development
stdout_logfile=./logs/%(program_name)s_%(process_num)s.log
stdout_logfile_maxbytes=10MB
stdout_logfile_backups=10
stderr_logfile=./logs/%(program_name)s_%(process_num)s.err
stderr_logfile_maxbytes=10MB
stderr_logfile_backups=10
autorestart=true
[program:integrat_tictactoe_worker]
numprocs=1
numprocs_start=0
process_name=%(program_name)s_%(process_num)s
command=twistd -n
--pidfile=./tmp/pids/%(program_name)s_%(process_num)s.pid
start_worker
--worker_class=vumi.workers.integrat.games.TicTacToeWorker
--config=config/tictactoe_ussd.yaml
--vhost=/develop
environment=DJANGO_SETTINGS_MODULE=environments.development
stdout_logfile=./logs/%(program_name)s_%(process_num)s.log
stdout_logfile_maxbytes=10MB
stdout_logfile_backups=10
stderr_logfile=./logs/%(program_name)s_%(process_num)s.err
stderr_logfile_maxbytes=10MB
stderr_logfile_backups=10
autorestart=true
[program:integrat_rockpaperscissors_worker]
numprocs=1
numprocs_start=0
process_name=%(program_name)s_%(process_num)s
command=twistd -n
--pidfile=./tmp/pids/%(program_name)s_%(process_num)s.pid
start_worker
--worker_class=vumi.workers.integrat.games.RockPaperScissorsWorker
--config=config/rockpaperscissors_ussd.yaml
--vhost=/develop
environment=DJANGO_SETTINGS_MODULE=environments.development
stdout_logfile=./logs/%(program_name)s_%(process_num)s.log
stdout_logfile_maxbytes=10MB
stdout_logfile_backups=10
stderr_logfile=./logs/%(program_name)s_%(process_num)s.err
stderr_logfile_maxbytes=10MB
stderr_logfile_backups=10
autorestart=true
[program:integrat_hangman_worker]
numprocs=1
numprocs_start=0
process_name=%(program_name)s_%(process_num)s
command=twistd -n
--pidfile=./tmp/pids/%(program_name)s_%(process_num)s.pid
start_worker
--worker_class=vumi.workers.integrat.games.HangmanWorker
--config=config/hangman_ussd.yaml
--vhost=/develop
environment=DJANGO_SETTINGS_MODULE=environments.development
stdout_logfile=./logs/%(program_name)s_%(process_num)s.log
stdout_logfile_maxbytes=10MB
stdout_logfile_backups=10
stderr_logfile=./logs/%(program_name)s_%(process_num)s.err
stderr_logfile_maxbytes=10MB
stderr_logfile_backups=10
autorestart=true