On 09.07.2009 7:15 Uhr, Willy Tarreau wrote: > As I said in earlier mail, I have implemented the "multiple file" loading > in 1.4-dev : > > > http://haproxy.1wt.eu/git?p=haproxy.git;a=commit;h=5d01a63b7862235fdd3119cb29d5a0cfd04edb91 > > If many people are interested, I know it will be quite easy to backport it > to 1.3, and I can merge it into 1.3.19 once I have a few other things to > put with it.
Willy! Would it be difficult to extent your patch to load all files (potentially named *.cfg or something like that) in a directory? You could check each argument if it's a file or a directory and include its containing files if its the latter. I think that would be more flexible and allow for a more natural configuration. You could for example create a self configuring loadbalancer by just dropping a file with a server definition to a "backend directory" and issuing a reload. Judging from the comments above that seems to be desirable to at least some of us :) Unfortunately, I'm not that fluent in C so I can not provide a proper patch but perhaps someone else can? --Holger