Re: [PATCH] Read acl included files relative to the configuration file

From: Willy Tarreau <w#1wt.eu>
Date: Sun, 11 Sep 2011 15:35:59 +0200


Hi Finn,

On Thu, Sep 08, 2011 at 11:21:34AM +0200, Finn Arne Gangstad wrote:
> 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.

BTW, I implemented this in 1.5-dev7.

Willy Received on 2011/09/11 15:35

This archive was generated by hypermail 2.2.0 : 2011/09/11 15:45 CEST