X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/20470a64f04ff1fc122fc5b214c9fc44b364bcee..08c67abd5ce3eab54bac8a67c46c1cbb1ae39db1:/cookbooks/nominatim/templates/default/logrotate.nominatim.erb diff --git a/cookbooks/nominatim/templates/default/logrotate.nominatim.erb b/cookbooks/nominatim/templates/default/logrotate.nominatim.erb index 6a8412ba3..5e2caae28 100644 --- a/cookbooks/nominatim/templates/default/logrotate.nominatim.erb +++ b/cookbooks/nominatim/templates/default/logrotate.nominatim.erb @@ -7,5 +7,28 @@ compress delaycompress notifempty - create 640 root adm + create 640 nominatim adm } + +/var/log/nominatim/query.log { + weekly + missingok + rotate 52 + compress + delaycompress + notifempty + create 640 www-data adm +} +<% if node[:lsb][:release].to_f < 14.04 -%> + +/var/log/php5-fpm.log { + weekly + missingok + rotate 3 + compress + delaycompress + postrotate + /usr/bin/service php5-fpm restart > /dev/null + endscript +} +<% end -%>