X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/611017bc534a5e2191dbf939b4be4899bbe9669c..4722e0f97ac741783a6ed28fa49a5548295d64a0:/cookbooks/nominatim/templates/default/logrotate.nginx.erb?ds=sidebyside diff --git a/cookbooks/nominatim/templates/default/logrotate.nginx.erb b/cookbooks/nominatim/templates/default/logrotate.nginx.erb index 5bbd02eff..e0eed7ffd 100644 --- a/cookbooks/nominatim/templates/default/logrotate.nginx.erb +++ b/cookbooks/nominatim/templates/default/logrotate.nginx.erb @@ -7,21 +7,21 @@ compress delaycompress notifempty - create 640 nginx adm + create 640 www-data adm sharedscripts postrotate [ -f /var/run/nginx.pid ] && kill -USR1 `cat /var/run/nginx.pid` endscript } -<%= node[:nominatim][:logdir] %>/nominatim.openstreetmap.org-access.log { +<%= node[:nominatim][:logdir] %>/nominatim.openstreetmap.org-*.log { daily missingok rotate 28 compress delaycompress notifempty - create 640 root adm + create 640 www-data adm sharedscripts postrotate [ -f /var/run/nginx.pid ] && kill -USR1 `cat /var/run/nginx.pid`