-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathejabberd.cfg
62 lines (54 loc) · 1.62 KB
/
ejabberd.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
[buildout]
ejabberd-parts =
ejabberd
ejabberd-conf
ejabberd-register-admin
ejabberd-admin
ejabberd-backup
[ejabberd]
recipe = rod.recipe.ejabberd
erlang-path = /usr/bin
url = http://www.process-one.net/downloads/ejabberd/2.1.10/ejabberd-2.1.10.tar.gz
[ejabberd-conf]
recipe = collective.recipe.template
input = templates/ejabberd.cfg
output = ${buildout:directory}/etc/ejabberd.cfg
xmppdomain = ${credentials:ejabberd-domain}
admin_userid = ${credentials:ejabberd-user}
collaboration_port = 5347
component_password = ${credentials:ejabberd-password}
pubsub_max_items_node = 1000
[ejabberd-register-admin]
recipe = collective.recipe.template
mode = 755
output = ${buildout:bin-directory}/ejabberd-register-admin
input = inline:
#!/bin/bash
${buildout:bin-directory}/ejabberdctl register ${credentials:ejabberd-user} ${credentials:ejabberd-domain} ${credentials:ejabberd-password}
[ejabberd-admin]
recipe = plone.recipe.command
command =
${buildout:bin-directory}/ejabberd &
sleep 5
${buildout:bin-directory}/ejabberd-register-admin
${buildout:bin-directory}/ejabberdctl stop
sleep 5
update-command =
[ejabberd-backup]
recipe = collective.recipe.template
mode = 755
output = ${buildout:bin-directory}/ejabberd-backup
input = inline:
#!/bin/bash
${buildout:bin-directory}/ejabberdctl backup ${buildout:directory}/var/backups/ejabberd.bak
[ejabberd-supervisor]
autostart = true
name = ejabberd
program =
[program:${:name}]
command = ${buildout:bin-directory}/ejabberd
startretries = 5
redirect_stderr = true
autostart = ${:autostart}
autorestart = true
priority = 100