HAProxy Enterprise Documentation 2.5r1

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.5 directory. Then, edit the file /lib/systemd/system/hapee-2.5-lb.service. Change the CONFIG parameter in the Environment field to point to the directory:

Environment="CONFIG=/etc/hapee-2.5" "PIDFILE=/run/hapee-2.5-lb.pid"

Call systemctl daemon-reload and then restart the service:

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

Next up

Enable/Disable Servers