copr-backend: tweak lighttpd logrotate script
This commit is contained in:
parent
89fc603a89
commit
c50aa8746f
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue