Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
# Postfix logs
mail.* -/var/log/mail
+
+# HAProxy
+local1.* -/var/log/haproxy
--- /dev/null
+/var/log/haproxy {
+ missingok
+ notifempty
+ sharedscripts
+ postrotate
+ /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
+ endscript
+}
#etc/haproxy
etc/haproxy/haproxy.cfg
+etc/logrotate.d/haproxy
etc/rc.d/init.d/haproxy
usr/sbin/haproxy
#usr/sbin/haproxy-systemd-wrapper
#install initscripts
$(call INSTALL_INITSCRIPT,haproxy)
+ # Logrotate
+ -mkdir -pv /etc/logrotate.d
+ install -v -m 644 $(DIR_SRC)/config/haproxy/logrotate \
+ /etc/logrotate.d/haproxy
+
@rm -rf $(DIR_APP)
@$(POSTBUILD)