Browse Source

Merge pull request #50 from 2600hz/haproxy_fix

HAProxy fix
3.21
lazedo 11 years ago
parent
commit
01638de186
2 changed files with 13 additions and 1 deletions
  1. +12
    -0
      system/logrotate.d/haproxy.conf
  2. +1
    -1
      system/rsyslog.d/20-haproxy.conf

+ 12
- 0
system/logrotate.d/haproxy.conf View File

@ -0,0 +1,12 @@
/var/log/haproxy/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
}

+ 1
- 1
system/rsyslog.d/20-haproxy.conf View File

@ -1,2 +1,2 @@
if $programname == 'haproxy' then /var/log/haproxy.log
if $programname == 'haproxy' then /var/log/haproxy/haproxy.log
& ~ & ~

Loading…
Cancel
Save