Commit 21835502 by Ivan Tyagov

Logrotate entries for slapgrid output inside webrunner

@alain, @rafael 

Test is here: https://nexedi.erp5.net/test_result_module/20180412-3688F368/2/view

Its failures which are different from  master one (https://nexedi.erp5.net/test_result_module/20180412-3501D1A/1) seems unrelated to my changes thus I propose to emrge it in and include in next webrunner release.

/reviewed-on !317
2 parents 63d94651 549c1e5f
......@@ -19,7 +19,7 @@ md5sum = 713db528880282d568278f09458d2aab
[template-runner]
filename = instance-runner.cfg
md5sum = 111f9643078ab7fd27e6695f61ec837c
md5sum = 04e31ac503753f89510dd412b4680c56
[template-runner-import-script]
filename = template/runner-import.sh.jinja2
......@@ -35,7 +35,7 @@ md5sum = 98ce179badc6af5979a64a7c3d0a2ceb
[instance-runner-export]
filename = instance-runner-export.cfg.in
md5sum = d1122988652127af5e252f1503eeacab
md5sum = e0e62859fc00207e40af6acb402665fb
[template-resilient]
filename = instance-resilient.cfg.jinja2
......
......@@ -33,6 +33,7 @@ parts +=
supervisord-wrapper
supervisord-promise
logrotate-entry-supervisord
logrotate-entry-slapgrid
httpd-graceful-wrapper
## Monitoring part
## Monitor for runner
......
......@@ -30,6 +30,7 @@ parts =
supervisord-wrapper
supervisord-promise
logrotate-entry-supervisord
logrotate-entry-slapgrid
httpd-graceful-wrapper
{% if slapparameter_dict.get('no-ipv4-frontend', 'false') == 'false' %}
slaprunner-frontend-promise
......@@ -798,6 +799,11 @@ name = supervisord
log = $${directory:log}/slapproxy.log $${directory:log}/supervisord.log $${directory:log}/supervisord-errors.log
post = kill -SIGUSR2 $(cat $${buildout:directory}/var/run/supervisord.pid)
[logrotate-entry-slapgrid]
<= logrotate-entry-base
name = slapgrid
log = $${runnerdirectory:home}/instance/*/.slapgrid/log/instance.log $${runnerdirectory:home}/instance/*/.slapgrid/promise/log/*.log
[supervisord-promise]
recipe = slapos.cookbook:check_port_listening
path = $${directory:promises}/supervisord
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!