britodfbr icon

seattleplone_config_zeo.cfg

britodfbr | PRO | 04/09/14 12:15:38 PM UTC | 0 ⭐ | 433 👁️ | Never ⏰ | []
Bash |

1.24 KB

|

None

|

0 👍

/

0 👎

[buildout]
extends = base.cfg
parts +=
    zeo
    backup
    backup-daily
    backup-weekly
    logrotate
    logrotate-daily
    supervisor
    supervisor-reboot
 
 
[zeo]
recipe = plone.recipe.zope2zeoserver
zope2-location = ${zope2:location}
zeo-address = 127.0.0.1:8100
 
[backup]
recipe = collective.recipe.backup
 
[backup-daily]
recipe = z3c.recipe.usercrontab
times = 0 3 * * 0-6
command = ${buildout:directory}/bin/backup
 
[backup-weekly]
recipe = z3c.recipe.usercrontab
times = 0 3 * * 7
command = ${buildout:directory}/bin/zeopack -p 8000 -d 1 && ${buildout:directory}/bin/backup
 
[instance1]
zeo-client = True
zeo-address = ${zeo:zeo-address}
zserver-threads = 2
zodb-cache-size = 250000
 
[logrotate]
recipe = collective.recipe.template
input = etc/logrotate.conf.tmpl
output = etc/logrotate.conf
 
[logrotate-daily]
recipe = z3c.recipe.usercrontab
times = 0 6 * * *
command = /usr/sbin/logrotate --state ${buildout:directory}/var/logrotate.status ${buildout:directory}/${logrotate:output}
 
[supervisor]
recipe = zc.recipe.egg
eggs = supervisor
 
[supervisor-reboot]
recipe = z3c.recipe.usercrontab
times = @reboot
command = ${buildout:directory}/bin/supervisord -c ${buildout:directory}/etc/supervisord.conf

Comments