Rotate haproxy.log periodically

This commit is contained in:
Chiradeep Vittal 2010-10-06 13:26:34 -07:00
parent cdc6864e7e
commit a3515e0f59
1 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
/var/log/haproxy.log {
daily
rotate 5
missingok
notifempty
size 10M
postrotate
/bin/kill -HUP `cat /var/run/rsyslog.pid 2> /dev/null` 2> /dev/null || true
endscript
}