haproxy: Log to syslog and install logrotate script

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2018-10-22 21:47:05 +02:00
parent 699f0aa710
commit c5494ad098
4 changed files with 17 additions and 0 deletions

8
config/haproxy/logrotate Normal file
View File

@@ -0,0 +1,8 @@
/var/log/haproxy {
missingok
notifempty
sharedscripts
postrotate
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
endscript
}