Advertisement
britodfbr

seattleplone_config_zeo.cfg

Apr 9th, 2014
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.24 KB | None | 0 0
  1. [buildout]
  2. extends = base.cfg
  3. parts +=
  4.     zeo
  5.     backup
  6.     backup-daily
  7.     backup-weekly
  8.     logrotate
  9.     logrotate-daily
  10.     supervisor
  11.     supervisor-reboot
  12.  
  13.  
  14. [zeo]
  15. recipe = plone.recipe.zope2zeoserver
  16. zope2-location = ${zope2:location}
  17. zeo-address = 127.0.0.1:8100
  18.  
  19. [backup]
  20. recipe = collective.recipe.backup
  21.  
  22. [backup-daily]
  23. recipe = z3c.recipe.usercrontab
  24. times = 0 3 * * 0-6
  25. command = ${buildout:directory}/bin/backup
  26.  
  27. [backup-weekly]
  28. recipe = z3c.recipe.usercrontab
  29. times = 0 3 * * 7
  30. command = ${buildout:directory}/bin/zeopack -p 8000 -d 1 && ${buildout:directory}/bin/backup
  31.  
  32. [instance1]
  33. zeo-client = True
  34. zeo-address = ${zeo:zeo-address}
  35. zserver-threads = 2
  36. zodb-cache-size = 250000
  37.  
  38. [logrotate]
  39. recipe = collective.recipe.template
  40. input = etc/logrotate.conf.tmpl
  41. output = etc/logrotate.conf
  42.  
  43. [logrotate-daily]
  44. recipe = z3c.recipe.usercrontab
  45. times = 0 6 * * *
  46. command = /usr/sbin/logrotate --state ${buildout:directory}/var/logrotate.status ${buildout:directory}/${logrotate:output}
  47.  
  48. [supervisor]
  49. recipe = zc.recipe.egg
  50. eggs = supervisor
  51.  
  52. [supervisor-reboot]
  53. recipe = z3c.recipe.usercrontab
  54. times = @reboot
  55. command = ${buildout:directory}/bin/supervisord -c ${buildout:directory}/etc/supervisord.conf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement