Installed haproxy 2.1 and I tried to start it up using service start haproxy but it does not go into the background. There is a post that mentions to add the daemon flag to the startup script but it does not work for me. I believe this only works for 1.8. https://forums.freebsd.org/threads/haproxy-1-8-doesnt-go-into-background-during-boot-on-freebsd-11-2.70021/ I added the -D unto this line. ${haproxy_flags:="-q -f ${haproxy_config} -p ${pidfile} -D"}
adding daemon under the global section on the haproxy.conf file has the same effect as adding the -D flag.