From 4d7894d0a569e3150b4dca271b52d4cd08494223 Mon Sep 17 00:00:00 2001 From: Xavier Date: Fri, 12 Jun 2015 17:44:01 +0200 Subject: [PATCH] Added Logrotate configuration file for HAProxy --- system/logrotate.d/haproxy.conf | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 system/logrotate.d/haproxy.conf 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 +}