# Restart HAProxy after changing the configuration

**URL:** <https://discourse.haproxy.org/t/restart-haproxy-after-changing-the-configuration/3703>\
**Category:** Help!\
**Created:** [April 7, 2019, 12:54pm UTC](https://discourse.haproxy.org/t/restart-haproxy-after-changing-the-configuration/3703 "2019-04-07T12:54:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thoufiq](https://avatars.discourse-cdn.com/v4/letter/t/edb3f5/32.png) [@Thoufiq](https://discourse.haproxy.org/u/Thoufiq)\
**Post date:** [April 7, 2019, 12:54pm UTC](https://discourse.haproxy.org/t/restart-haproxy-after-changing-the-configuration/3703/1 "2019-04-07T12:54:20Z")

</div>

Hi,

I am running HAProxy as a load balancer and whenever changing the configuration, I need to restart the HAProxy for the configuration changes to be applied. Due to this, we have to schedule a maintenance window for each and every simple configuration change. Is there any other way to change the configurations without restarting HAProxy.Please help.

---

<div class="post-metadata">

**Author:** ![ferdrg](https://avatars.discourse-cdn.com/v4/letter/f/90db22/32.png) [@ferdrg](https://discourse.haproxy.org/u/ferdrg)\
**Post date:** [April 13, 2019, 1:08am UTC](https://discourse.haproxy.org/t/restart-haproxy-after-changing-the-configuration/3703/2 "2019-04-13T01:08:24Z")

</div>

I use the following to reload configuration without restarting:

/usr/local/sbin/haproxy -f /path/filename.cfg -p /var/run/haproxy.pid -sf $(cat /var/run/haproxy.pid)

---

<div class="post-metadata">

**Author:** ![lukastribus](https://avatars.discourse-cdn.com/v4/letter/l/7ea924/32.png) [@lukastribus](https://discourse.haproxy.org/u/lukastribus)\
**Post date:** [April 13, 2019, 8:13am UTC](https://discourse.haproxy.org/t/restart-haproxy-after-changing-the-configuration/3703/3 "2019-04-13T08:13:27Z")

</div>

Let’s stick to one thread per topic:

> [@Restart the haproxy service when changing the configuration](https://discourse.haproxy.org/t/restart-the-haproxy-service-when-changing-the-configuration/3694):
>
> Hi, I am running haproxy as loadbalancer.HAProxy configuration is saved in etc/haproxy/haproxy.cfg. Whenever i change the the configuration file, i am restarting the haproxy service to apply the configuration changes.Without restarting the service the changes are not getting applied.Is there any other way to apply the configuration without restart haproxy service.
