Pavel Loginov 3 years ago
parent
commit
c1c5d13131
  1. 2
      app/scripts/ansible/roles/haproxy/templates/haproxy.service.j2
  2. 12
      config_other/logrotate/haproxy

2
app/scripts/ansible/roles/haproxy/templates/haproxy.service.j2

@ -12,7 +12,7 @@ ExecStart=/sbin/haproxy -Ws -f $CONFIG -p $PIDFILE $EXTRAOPTS
ExecReload=/sbin/haproxy -f $CONFIG -c -q $EXTRAOPTS
ExecReload=/bin/kill -USR2 $MAINPID
KillMode=mixed
Restart=always
Restart=never
SuccessExitStatus=143
Type=notify

12
config_other/logrotate/haproxy

@ -1,12 +0,0 @@
/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
}
Loading…
Cancel
Save