X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/20470a64f04ff1fc122fc5b214c9fc44b364bcee..c3d4f394005725d7069dda1947a5419eeb7b2e55:/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..a8952fe8f 100644 --- a/cookbooks/nominatim/templates/default/logrotate.nominatim.erb +++ b/cookbooks/nominatim/templates/default/logrotate.nominatim.erb @@ -7,5 +7,18 @@ compress delaycompress notifempty - create 640 root adm + create 640 nominatim 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 -%>