# HG changeset patch # User Thierry Florac # Date 1496415124 -7200 # Node ID 20da2f40949b712359177126a11785b0bc34e848 # Parent 2025dd476ece2c70b16f033c35ef1affd554739b Added logrotate configuration file diff -r 2025dd476ece -r 20da2f40949b {{cookiecutter.project_slug}}/etc/logrotate.d/gunicorn-{{cookiecutter.project_slug}}.conf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/{{cookiecutter.project_slug}}/etc/logrotate.d/gunicorn-{{cookiecutter.project_slug}}.conf Fri Jun 02 16:52:04 2017 +0200 @@ -0,0 +1,14 @@ +$((INSTALL))/var/log/{{ cookiecutter.project_slug }}.log, +{{ cookiecutter.logs_directory }}/{{ cookiecutter.webapp_name }}-*.log { + weekly + missingok + rotate 52 + compress + delaycompress + notifempty + create 644 {{ cookiecutter.run_user }} {{ cookiecutter.run_group }} + sharedscripts + postrotate + systemctl reload gunicorn-{{ cookiecutter.project_slug }}.service + endscript +}