On Wed, Feb 28, 2018 at 9:28 PM, Vincent Bernat <[email protected]> wrote:
> ❦ 28 février 2018 21:00 +1100, Igor Cicimov <igorc@encompasscorporation. > com> : > > > # ls -l /var/lib/haproxy/dev/log > > srw-rw-rw- 1 root root 0 Feb 28 16:06 /var/lib/haproxy/dev/log > > > > # lsof -n -p $(pidof haproxy) | grep dev/log > > # > > In fact, this seems expected because HAProxy is only using > non-connection oriented sockets. > > If you run HAProxy outside of systemd, does it work as expected? If yes, > what's the output of (when running through systemd): > > cat /proc/$(pidof haproxy)/mounts > Same, no logging: # /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid -f /etc/haproxy/conf.d/01-backends-tomcat.cfg -Ds & [1] 28377 root@ip-10-100-0-242:~# cat /run/haproxy.pid 28378 # ps aux | grep hap haproxy 28377 0.0 2.7 59880 27852 pts/1 S 22:10 0:00 /usr/sbin/haproxy-master haproxy 28378 0.0 2.6 60020 26384 ? Ss 22:10 0:00 /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid -f /etc/haproxy/conf.d/01-backends-tomcat.cfg -Ds # tail -f /var/log/haproxy.log ^C # grep . /var/log/haproxy.log | wc -l 0 The output of the command when running through systemd: # pidof haproxy 28641 # cat /proc/$(pidof haproxy)/mounts #

