diff --git a/roles/copr/backend/templates/logrotate/lighttpd.j2 b/roles/copr/backend/templates/logrotate/lighttpd.j2 index ec3e04f08c..5a8f86c41a 100644 --- a/roles/copr/backend/templates/logrotate/lighttpd.j2 +++ b/roles/copr/backend/templates/logrotate/lighttpd.j2 @@ -8,21 +8,21 @@ # Lighty, because then it doesn't restart cronolog. We need to -HUP the # cronolog directly (which is fortunately re-started by Lighty/mod_accesslog). -/var/log/lighttpd/*.log { - rotate 5 - daily - missingok - notifempty - compress - sharedscripts - prerotate -{% if devel %} - /usr/bin/copr_log_hitcounter.py /var/log/lighttpd/access.log --ignore-subnets 172.25.144.0/20 209.132.184.33/24 &>>/var/log/copr-backend/hitcounter-logrotate.log || : -{% else %} - /usr/bin/copr_log_hitcounter.py /var/log/lighttpd/access.log --ignore-subnets 172.25.80.0/20 209.132.184.33/24 &>>/var/log/copr-backend/hitcounter-logrotate.log || : -{% endif %} - endscript - postrotate - /usr/bin/killall -HUP cronolog &>>/var/log/copr-backend/cronolog-restart.log || : - endscript -} +## /var/log/lighttpd/*.log { +## rotate 5 +## daily +## missingok +## notifempty +## compress +## sharedscripts +## prerotate +## {% if devel %} +## /usr/bin/copr_log_hitcounter.py /var/log/lighttpd/access.log --ignore-subnets 172.25.144.0/20 209.132.184.33/24 &>>/var/log/copr-backend/hitcounter-logrotate.log || : +## {% else %} +## /usr/bin/copr_log_hitcounter.py /var/log/lighttpd/access.log --ignore-subnets 172.25.80.0/20 209.132.184.33/24 &>>/var/log/copr-backend/hitcounter-logrotate.log || : +## {% endif %} +## endscript +## postrotate +## /usr/bin/killall -HUP cronolog &>>/var/log/copr-backend/cronolog-restart.log || : +## endscript +## }