From a3515e0f5980ae1ede07f22bd49eaa937f1a1593 Mon Sep 17 00:00:00 2001 From: Chiradeep Vittal Date: Wed, 6 Oct 2010 13:26:34 -0700 Subject: [PATCH] Rotate haproxy.log periodically --- patches/xenserver/etc/logrotate.d/haproxy | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 patches/xenserver/etc/logrotate.d/haproxy diff --git a/patches/xenserver/etc/logrotate.d/haproxy b/patches/xenserver/etc/logrotate.d/haproxy new file mode 100644 index 00000000000..858fe2a1c3a --- /dev/null +++ b/patches/xenserver/etc/logrotate.d/haproxy @@ -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 +}