X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/eff8701ee48d28f9afbf97b369d484f76e25db8a..611017bc534a5e2191dbf939b4be4899bbe9669c:/cookbooks/nominatim/templates/default/logrotate.nginx.erb diff --git a/cookbooks/nominatim/templates/default/logrotate.nginx.erb b/cookbooks/nominatim/templates/default/logrotate.nginx.erb new file mode 100644 index 000000000..5bbd02eff --- /dev/null +++ b/cookbooks/nominatim/templates/default/logrotate.nginx.erb @@ -0,0 +1,29 @@ +# DO NOT EDIT - This file is being maintained by Chef + +/var/log/nginx/*.log { + daily + missingok + rotate 7 + compress + delaycompress + notifempty + create 640 nginx adm + sharedscripts + postrotate + [ -f /var/run/nginx.pid ] && kill -USR1 `cat /var/run/nginx.pid` + endscript +} + +<%= node[:nominatim][:logdir] %>/nominatim.openstreetmap.org-access.log { + daily + missingok + rotate 28 + compress + delaycompress + notifempty + create 640 root adm + sharedscripts + postrotate + [ -f /var/run/nginx.pid ] && kill -USR1 `cat /var/run/nginx.pid` + endscript +}