Add LongRequestLogger product support.
[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
21 # long request
22 longrequest-logger-file = %(longrequest_logger_file)s
23 longrequest-logger-timeout = %(longrequest_logger_timeout)s
24 longrequest-logger-interval = %(longrequest_logger_interval)s
25
26 # Paths
27 wrapper = $${basedirectory:services}/%(zope_id)s
28 instance-path = $${directory:instance}
29 instance-etc = $${directory:instance-etc}
30 instance-products = $${directory:instance-products}
31 bt5-repository = $${rootdirectory:var}/bt5_repository
32 tmp-path = $${rootdirectory:tmp}
33 bin-path = $${rootdirectory:bin}
34 site-zcml = $${:instance-etc}/site.zcml
35 pid-file = $${basedirectory:run}/%(zope_id)s.pid
36 lock-file = $${basedirectory:run}/%(zope_id)s.lock
37 event-log = $${basedirectory:log}/%(zope_id)s-event.log
38 z2-log = $${basedirectory:log}/%(zope_id)s-Z2.log
39 configuration-file = $${rootdirectory:etc}/%(zope_id)s.conf
40 inituser = $${:instance-path}/inituser
41 # Binary information
42 runzope-binary = ${buildout:bin-directory}/runzope
43
44 # BT5 Configuration
45 bt5-repository-list =
46
47 [logrotate-entry-%(zope_id)s]
48 <= logrotate
49 recipe = slapos.cookbook:logrotate.d
50 name = %(zope_id)s
51 log = $${%(zope_id)s:event-log} $${%(zope_id)s:z2-log}
52 post = ${buildout:bin-directory}/killpidfromfile $${%(zope_id)s:pid-file} SIGUSR2