copr-be: disable logrotate for lighttpd for now
https://pagure.io/copr/copr/issue/2001
This commit is contained in:
parent
5b30ab6900
commit
f4e09eac78
1 changed files with 18 additions and 18 deletions
|
@ -8,21 +8,21 @@
|
||||||
# Lighty, because then it doesn't restart cronolog. We need to -HUP the
|
# Lighty, because then it doesn't restart cronolog. We need to -HUP the
|
||||||
# cronolog directly (which is fortunately re-started by Lighty/mod_accesslog).
|
# cronolog directly (which is fortunately re-started by Lighty/mod_accesslog).
|
||||||
|
|
||||||
/var/log/lighttpd/*.log {
|
## /var/log/lighttpd/*.log {
|
||||||
rotate 5
|
## rotate 5
|
||||||
daily
|
## daily
|
||||||
missingok
|
## missingok
|
||||||
notifempty
|
## notifempty
|
||||||
compress
|
## compress
|
||||||
sharedscripts
|
## sharedscripts
|
||||||
prerotate
|
## prerotate
|
||||||
{% if devel %}
|
## {% 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 || :
|
## /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 %}
|
## {% 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 || :
|
## /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 %}
|
## {% endif %}
|
||||||
endscript
|
## endscript
|
||||||
postrotate
|
## postrotate
|
||||||
/usr/bin/killall -HUP cronolog &>>/var/log/copr-backend/cronolog-restart.log || :
|
## /usr/bin/killall -HUP cronolog &>>/var/log/copr-backend/cronolog-restart.log || :
|
||||||
endscript
|
## endscript
|
||||||
}
|
## }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue