diff options
Diffstat (limited to 'haproxy.logrotate')
-rw-r--r-- | haproxy.logrotate | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/haproxy.logrotate b/haproxy.logrotate new file mode 100644 index 0000000..96544e0 --- /dev/null +++ b/haproxy.logrotate @@ -0,0 +1,12 @@ +/var/log/haproxy.log { + daily + rotate 10 + 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 +} |