Add logrotate for webrunner's apache, monitor-apache, nginx and supervisord.
- Last updated by Ivan Tyagov
96 100 frequency = weekly 97 101 rotate-num = 7 98 102 103 [logrotate-entry-apache] 104 <= logrotate-entry-base 105 name = apache 106 log = $${basedirectory:log}/httpd-access.log $${basedirectory:log}/httpd-error.log 107 post = test ! -s $${buildout:directory}/var/run/httpd.pid || $${buildout:directory}/bin/slapos-kill --pidfile $${buildout:directory}/var/run/httpd.pid -s USR1 108 109 [logrotate-entry-nginx] 110 <= logrotate-entry-base 111 name = nginx 112 log = $${basedirectory:log}/nginx.access.log $${basedirectory:log}/nginx.error.log 113 post = kill -HUP $(cat $${buildout:directory}/var/run/nginx.pid) 114 115 [logrotate-entry-monitor-apache] @rafael , monitor stack seems to care only for data files contained in:
/srv/slapgrid/slappart0/srv/monitor/public/*.history.json
/srv/slapgrid/slappart0/srv/monitor/private/*.data.json
/srv/slapgrid/slappart0/srv/monitor/private/data/.jio_documents/*.data.json
So needed imo
I know it is needed (I was sure it existed @alain.takoudjou), but this entry should be added to monitor stack, so it would work on any case place where monitor stack is used...
Same seems to go to supervisord and others.... we should include logrotate where apache/nginx/whatever is added, else it will be hard to update things later.
@rafael, I see. I will add to every component / stack so it works the way proposed.
mentioned in merge request !275 (merged)
mentioned in commit ebe1cabf