Browse Source

Added Logrotate configuration file for HAProxy

3.21
Xavier 11 years ago
parent
commit
4d7894d0a5
1 changed files with 12 additions and 0 deletions
  1. +12
    -0
      system/logrotate.d/haproxy.conf

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

@ -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
}

Loading…
Cancel
Save