I've configured my HAProxy server to run in a chroot jail logging messages to syslog socket. My problem is that the only messsages currently being logged are for when haproxy is starting up.
May 26 10:42:37 dev haproxy: Proxy my_listener started.
I've created a user and group called haproxy and then done the following:
su -l haproxy mkdir jail mkdir -m 2750 jail/dev chmod a-w jail
Relevant lines from my haproxy configuration are:
global chroot /home/haproxy/jail daemon group haproxy node haproxy log /home/haproxy/jail/dev/log local0 defaults log global option tcplog
syslogd is being started with the option
-a /home/haproxy/jail/dev/log and I've added the following line to
ls -la on jail/dev gives
drwxrws--- 2 haproxy haproxy 4096 May 26 11:07 . dr-xr-x--x 3 haproxy haproxy 4096 May 26 11:01 .. srw-rw-rw- 1 root haproxy 0 May 26 11:07 log
Running Centos 5.5 and HAProxy 1.4.21. As I said I only see the listener start-up messages in
haproxy.log and nothing else.