# Haproxy & keepalived (chk\_haproxy) problem

**URL:** <https://discourse.haproxy.org/t/haproxy-keepalived-chk-haproxy-problem/6087>\
**Category:** Help!\
**Created:** [January 8, 2021, 11:08am UTC](https://discourse.haproxy.org/t/haproxy-keepalived-chk-haproxy-problem/6087 "2021-01-08T11:08:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![s.t](https://avatars.discourse-cdn.com/v4/letter/s/eada6e/32.png) [@s.t](https://discourse.haproxy.org/u/s.t)\
**Post date:** [January 8, 2021, 11:08am UTC](https://discourse.haproxy.org/t/haproxy-keepalived-chk-haproxy-problem/6087/1 "2021-01-08T11:08:34Z")

</div>

Hi.  
I want to set haproxy & keepalived system and testing failover between 2 servers.  
keepalived setting chk\_haproxy and if haproxy down, I hope failover.

vrrp\_script chk\_haproxy {  
script “systemctl is-active haproxy”  
}

Starting keepalived first.  
Haproxy is not starting , so failover start…

But haproxy cannot start before starting keepalived.  
Because keepalived have VIP settings, so haproxy bind VIP fail…

I want to start haproxy before keepalived starting in MASTER server.  
Thanks for any help.

---

<div class="post-metadata">

**Author:** ![baptiste64](https://avatars.discourse-cdn.com/v4/letter/b/46a35a/32.png) [@baptiste64](https://discourse.haproxy.org/u/baptiste64)\
**Post date:** [January 8, 2021, 5:14pm UTC](https://discourse.haproxy.org/t/haproxy-keepalived-chk-haproxy-problem/6087/2 "2021-01-08T17:14:16Z")

</div>

Hi,  
If you are not binding on “\*”, you can add the “transparent” option to your bind:  
[https://cbonte.github.io/haproxy-dconv/2.0/configuration.html#5.1-transparent](https://cbonte.github.io/haproxy-dconv/2.0/configuration.html#5.1-transparent)

---

<div class="post-metadata">

**Author:** ![s.t](https://avatars.discourse-cdn.com/v4/letter/s/eada6e/32.png) [@s.t](https://discourse.haproxy.org/u/s.t)\
**Post date:** [January 11, 2021, 6:36am UTC](https://discourse.haproxy.org/t/haproxy-keepalived-chk-haproxy-problem/6087/3 "2021-01-11T06:36:57Z")

</div>

thank you for reply!

I will try “transparent” option !
