HAProxy Enterprise Documentation 2.2r1

Start with split configuration files

If your configuration is split into several specific files (eg: tcp vs http), we recommend that you edit the service to load a directory rather than a single file. For example, place all of your .cfg files into the /etc/hapee-2.2 directory. Then, edit the file /lib/systemd/system/hapee-2.2-lb.service. Change the CONFIG parameter in the Environment field to point to the directory:

[Service]
Environment="CONFIG=/etc/hapee-2.2" "PIDFILE=/run/hapee-2.2-lb.pid"

Call systemctl daemon-reload and then restart the service:

$ sudo systemctl daemon-reload
$ sudo systemctl restart hapee-2.2-lb

Next up

Enable/Disable Servers
HAProxyConf 2022 - Call for papers