-
Notifications
You must be signed in to change notification settings - Fork 0
/
production.cfg
46 lines (41 loc) · 1014 Bytes
/
production.cfg
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
[buildout]
extends = base.cfg
ports.cfg
zeo.cfg
haproxy.cfg
supervisord.cfg
parts +=
start
stop
status
restart
[start]
recipe = collective.recipe.template
input = inline:
#!/bin/bash
${buildout:directory}/bin/supervisord
output = ${buildout:directory}/bin/start
mode = 755
[stop]
recipe = collective.recipe.template
input = inline:
#!/bin/bash
${buildout:directory}/bin/supervisorctl shutdown all
output = ${buildout:directory}/bin/stop
mode = 755
[restart]
recipe = collective.recipe.template
input = inline:
#!/bin/bash
${buildout:directory}/bin/supervisorctl restart instance:1
sleep 100
${buildout:directory}/bin/supervisorctl restart instance:2
output = ${buildout:directory}/bin/restart
mode = 755
[status]
recipe = collective.recipe.template
input = inline:
#!/bin/bash
${buildout:directory}/bin/supervisorctl status
output = ${buildout:directory}/bin/status
mode = 755