Hi,

I've downloaded and compiled haproxy version 1.8.7 on CentOS7

(make TARGET=linux2628 USE_PCRE=1 USE_OPENSSL=1 USE_ZLIB=1)


The proxy only starts as it should be if I add the "-d"


My haproxy.service


[Unit]

Description=HAProxy Load Balancer

After=syslog.target network.target


[Service]

EnvironmentFile=/etc/sysconfig/haproxy

ExecStart=/usr/sbin/haproxy -d -f /etc/haproxy/haproxy.cfg -p /run/haproxy.pid 
$OPTIONS

ExecReload=/bin/kill -USR2 $MAINPID

KillMode=mixed


[Install]

WantedBy=multi-user.target


"/usr/lib/systemd/system/haproxy.service" 12L, 303C

OK -> with -d
---------

Apr 09 20:43:32 haproxy.doom.be haproxy[3935]: epoll : pref=300,  test result OK

Apr 09 20:43:32 haproxy.doom.be haproxy[3935]: poll : pref=200,  test result OK

Apr 09 20:43:32 haproxy.doom.be haproxy[3935]: select : pref=150,  test result 
FAILED

Apr 09 20:43:32 haproxy.doom.be haproxy[3935]: Total: 3 (2 usable), will use 
epoll.

Apr 09 20:43:32 haproxy.doom.be haproxy[3935]: Available filters :

Apr 09 20:43:32 haproxy.doom.be haproxy[3935]: [SPOE] spoe

Apr 09 20:43:32 haproxy.doom.be haproxy[3935]: [COMP] compression

Apr 09 20:43:32 haproxy.doom.be haproxy[3935]: [TRACE] trace

Apr 09 20:43:32 haproxy.doom.be haproxy[3935]: Proxy http_back started.

Apr 09 20:43:32 haproxy.doom.be haproxy[3935]: Proxy http_back started.

I can see the stats and the requests are forwarded to the first 
server...(second is not yet configured)


NOK -> without -d

------

Apr 09 20:46:38 haproxy.doom.be systemd[1]: Stopping HAProxy Load Balancer...

Apr 09 20:46:38 haproxy.doom.be systemd[1]: Started HAProxy Load Balancer.

Apr 09 20:46:38 haproxy.doom.be systemd[1]: Starting HAProxy Load Balancer...


global
   log /dev/log local0
   log /dev/log local1 notice
   chroot /var/lib/haproxy
   stats timeout 30s
   user haproxy
   #group haproxy
   daemon

defaults
   log global
   mode http
   option httplog
   option dontlognull
   timeout connect 5000
   timeout client 50000
   timeout server 50000

frontend http_front
   bind *:80
   stats uri /haproxy?stats
   default_backend http_back

backend http_back
   balance roundrobin
   server BERT 10.10.8.30:80 check
   server ERNIE 10.10.8.31:80 check
"/etc/haproxy/haproxy.cfg" 27L, 504C


Thanks
Geert

Reply via email to