On Thu, Sep 08, 2011 at 07:43:46AM +0200, Willy Tarreau wrote:
> Hi again,
>
> This morning I had an better idea : pass the "config directory" parameter
> on the command line and have haproxy chdir() to it. That way, everything
> specified after it is relative to this dir, and you don't need a full path
> for config files. Eg :
>
> haproxy -C /etc/haproxy -f haproxy.cfg
>
> I think it's easier to explain and to understand than previous proposal,
> and it can completely solve your multi-machine issue (well doing "cd"
> before starting haproxy also does, but I agree it can be less convenient,
> especially when copy-pasting a command line from "ps").
Nice! That would be perfect, and also not make problems with any existing configuration. I'm making a new version of the other patch I sent right now, can look at this afterwards.
This archive was generated by hypermail 2.2.0 : 2011/09/08 11:30 CEST