Fixup 883b3630427d3d777374cdce4c727f6db80dff3b
[slapos.git] / software / erp5 / snippet-zope.cfg
1 [%(zope_id)s]
2 recipe = slapos.cookbook:generic.zope.zeo.client
3
4 # XXX: products won't be needed as soon as all ERP5 (and products-deps)
5 # products will be eggified so then it will be possible to use them thanks to
6 # availability in software's eggs
7 products = ${products:list}
8
9 # Options
10 user = zope
11 port = %(zope_port)s
12 ip = $${slap-network-information:local-ipv4}
13 thread-amount = %(zope_thread_amount)s
14 deadlock-path = /manage_debug_threads
15 timezone = %(timezone)s
16 zeo-connection-string =
17   %(zeo_connection_string)s
18
19 timeserver = %(zope_timeserver)s
20 tidstorage-ip = $${tidstorage:ip}
21 tidstorage-port = $${tidstorage:port}
22
23 # long request
24 longrequest-logger-file = %(longrequest_logger_file)s
25 longrequest-logger-timeout = %(longrequest_logger_timeout)s
26 longrequest-logger-interval = %(longrequest_logger_interval)s
27
28 # Paths
29 wrapper = $${basedirectory:services}/%(zope_id)s
30 instance-path = $${directory:instance}
31 instance-etc = $${directory:instance-etc}
32 instance-products = $${directory:instance-products}
33 bt5-repository = $${rootdirectory:var}/bt5_repository
34 tmp-path = $${rootdirectory:tmp}
35 bin-path = $${rootdirectory:bin}
36 site-zcml = $${:instance-etc}/site.zcml
37 pid-file = $${basedirectory:run}/%(zope_id)s.pid
38 lock-file = $${basedirectory:run}/%(zope_id)s.lock
39 event-log = $${basedirectory:log}/%(zope_id)s-event.log
40 z2-log = $${basedirectory:log}/%(zope_id)s-Z2.log
41 configuration-file = $${rootdirectory:etc}/%(zope_id)s.conf
42 inituser = $${:instance-path}/inituser
43 # Binary information
44 runzope-binary = ${buildout:bin-directory}/runzope
45
46 # BT5 Configuration
47 bt5-repository-list =
48
49 [logrotate-entry-%(zope_id)s]
50 <= logrotate
51 recipe = slapos.cookbook:logrotate.d
52 name = %(zope_id)s
53 log = $${%(zope_id)s:event-log} $${%(zope_id)s:z2-log}
54 post = ${buildout:bin-directory}/killpidfromfile $${%(zope_id)s:pid-file} SIGUSR2