haproxy/haproxy.logrotate

14 lines
319 B
Plaintext
Raw Normal View History

2020-02-14 10:50:02 +08:00
/var/log/haproxy.log {
compress
daily
dateext
rotate 31
missingok
notifempty
sharedscripts
postrotate
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
/bin/kill -HUP `cat /var/run/rsyslogd.pid 2> /dev/null` 2> /dev/null || true
endscript
}