Add logrotate entries for slapgrid instance output.
Showing
... | @@ -30,6 +30,7 @@ parts = | ... | @@ -30,6 +30,7 @@ parts = |
supervisord-wrapper | supervisord-wrapper | ||
supervisord-promise | supervisord-promise | ||
logrotate-entry-supervisord | logrotate-entry-supervisord | ||
logrotate-entry-slapgrid | |||
httpd-graceful-wrapper | httpd-graceful-wrapper | ||
{% if slapparameter_dict.get('no-ipv4-frontend', 'false') == 'false' %} | {% if slapparameter_dict.get('no-ipv4-frontend', 'false') == 'false' %} | ||
slaprunner-frontend-promise | slaprunner-frontend-promise | ||
... | @@ -798,6 +799,11 @@ name = supervisord | ... | @@ -798,6 +799,11 @@ name = supervisord |
log = $${directory:log}/slapproxy.log $${directory:log}/supervisord.log $${directory:log}/supervisord-errors.log | log = $${directory:log}/slapproxy.log $${directory:log}/supervisord.log $${directory:log}/supervisord-errors.log | ||
post = kill -SIGUSR2 $(cat $${buildout:directory}/var/run/supervisord.pid) | 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 | |||
|
|||
[supervisord-promise] | [supervisord-promise] | ||
recipe = slapos.cookbook:check_port_listening | recipe = slapos.cookbook:check_port_listening | ||
path = $${directory:promises}/supervisord | path = $${directory:promises}/supervisord | ||
... | ... |