copr-backend: tweak lighttpd logrotate script

This commit is contained in:
clime 2018-02-23 18:02:44 +01:00
parent 89fc603a89
commit c50aa8746f

View file

@ -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