diff --git a/system/logrotate.d/haproxy.conf b/system/logrotate.d/haproxy.conf new file mode 100644 index 0000000..8148b82 --- /dev/null +++ b/system/logrotate.d/haproxy.conf @@ -0,0 +1,12 @@ +/var/log/haproxy.log { + daily + rotate 31 + missingok + notifempty + compress + 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 +}