I install Haproxy in /apps/haproxy/usr/local/sbin. Instead of placing config in /etc/haproxy/haproxy.cfg I want to use default config in /apps/haproxy/conf/haproxy.cfg and /etc/default/haproxy. How to start the Haproxy with the custom config location?
N.B I supposed to make haproxy application movable.
Introduction
I install Haproxy in machine with user which only have access in /apps. So i can not install anything which use /etc as config location. I found how to install haproxy in /apps, but the configs is not installed.
Update
Prom previous answer i understand the -f param to set haproxy.cfg location. How about config in /etc/default/haproxy? Is there way to run haproxy without referring /etc/default/haproxy (always ENABLED=1)?
/etc/init.d/haproxy? Take a look inside there./etc/default/haproxyor/etc/init.d/haproxy. Please see my update in my question for details