diff --git a/roles/copr/backend/templates/logrotate/lighttpd.j2 b/roles/copr/backend/templates/logrotate/lighttpd.j2 index 9e5dc6477f..2ffe5272b4 100644 --- a/roles/copr/backend/templates/logrotate/lighttpd.j2 +++ b/roles/copr/backend/templates/logrotate/lighttpd.j2 @@ -3,11 +3,12 @@ daily missingok notifempty + compress prerotate {% if devel %} - /usr/bin/copr_log_hitcounter.py /var/log/lighttpd/access.log --ignore-subnet 172.25.144.0/20 &>/var/log/copr-backend/hitcounter-logrotate.log + /usr/bin/copr_log_hitcounter.py /var/log/lighttpd/access.log --ignore-subnet 172.25.144.0/20 &>>/var/log/copr-backend/hitcounter-logrotate.log || : {% else %} - /usr/bin/copr_log_hitcounter.py /var/log/lighttpd/access.log --ignore-subnet 172.25.80.0/20 &>/var/log/copr-backend/hitcounter-logrotate.log + /usr/bin/copr_log_hitcounter.py /var/log/lighttpd/access.log --ignore-subnet 172.25.80.0/20 &>>/var/log/copr-backend/hitcounter-logrotate.log || : {% endif %} endscript postrotate @@ -19,6 +20,7 @@ rotate 5 missingok notifempty + compress postrotate /usr/bin/killall -HUP lighttpd &>/dev/null || : endscript