snippet-zope.cfg 1.44 KB
Newer Older
Łukasz Nowak's avatar
Łukasz Nowak committed
1
[%(zope_id)s]
2
recipe = slapos.cookbook:generic.zope.zeo.client
Łukasz Nowak's avatar
WIP  
Łukasz Nowak committed
3 4 5 6 7 8 9 10

# XXX: products won't be needed as soon as all ERP5 (and products-deps)
# products will be eggified so then it will be possible to use them thanks to
# availability in software's eggs
products = ${products:list}

# Options
user = zope
11
port = %(zope_port)s
Łukasz Nowak's avatar
WIP  
Łukasz Nowak committed
12
ip = $${slap-network-information:local-ipv4}
13
thread-amount = %(zope_thread_amount)s
Łukasz Nowak's avatar
WIP  
Łukasz Nowak committed
14
deadlock-path = /manage_debug_threads
15
timezone = %(timezone)s
16
zeo-connection-string =
17
  %(zeo_connection_string)s
Łukasz Nowak's avatar
WIP  
Łukasz Nowak committed
18 19

# Paths
20
wrapper = $${basedirectory:services}/%(zope_id)s
Łukasz Nowak's avatar
WIP  
Łukasz Nowak committed
21 22 23 24 25 26 27
instance-path = $${directory:instance}
instance-etc = $${directory:instance-etc}
instance-products = $${directory:instance-products}
bt5-repository = $${rootdirectory:var}/bt5_repository
tmp-path = $${rootdirectory:tmp}
bin-path = $${rootdirectory:bin}
site-zcml = $${:instance-etc}/site.zcml
28 29 30 31 32
pid-file = $${basedirectory:run}/%(zope_id)s.pid
lock-file = $${basedirectory:run}/%(zope_id)s.lock
event-log = $${basedirectory:log}/%(zope_id)s-event.log
z2-log = $${basedirectory:log}/%(zope_id)s-Z2.log
configuration-file = $${rootdirectory:etc}/%(zope_id)s.conf
Łukasz Nowak's avatar
WIP  
Łukasz Nowak committed
33 34 35 36
inituser = $${:instance-path}/inituser
# Binary information
runzope-binary = ${buildout:bin-directory}/runzope

37
[logrotate-entry-%(zope_id)s]
Łukasz Nowak's avatar
WIP  
Łukasz Nowak committed
38 39 40
<= logrotate
recipe = slapos.cookbook:logrotate.d
name = zope
Łukasz Nowak's avatar
Łukasz Nowak committed
41 42
log = $${%(zope_id)s:event-log} $${%(zope_id)ss:z2-log}
post = ${buildout:bin-directory}/killpidfromfile $${%(zope_id)s:pid-file} SIGUSR2