#!/bin/sh
#
# Tails all haproxy logs. Accepts any find(1) option to restrict
# which files have to be displayed.
#
#  - m.barnaba@ifad.org  Fri Nov  7 11:31:32 CET 2014
#
find /var/log/haproxy/`date +"%Y/%m/%d"` "$@" -type f -print0 | xargs -0 tail -f -n0
exit $?
