]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: init: support a list of files on the command line
authorWilly Tarreau <w@1wt.eu>
Thu, 8 Oct 2015 09:58:48 +0000 (11:58 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 8 Oct 2015 09:58:48 +0000 (11:58 +0200)
commita088d316b71dd71ec86e287d59322f9245e3b36b
tree24a3f8e97b62831b2f7df66a44c64858607b3508
parentc6ca1aa34dd0e3999943c9a8754f447730b7563d
MEDIUM: init: support a list of files on the command line

HAProxy could already support being passed a file list on the command
line, by passing multiple times "-f" followed by a file name. People
have been complaining that it made it hard to pass file lists from init
scripts.

This patch introduces an end of arguments using the common "--" tag,
after which only file names may appear. These files are then added to
the existing list of other files specified using -f and are loaded in
their declaration order. Thus it becomes possible to do something like
this :

    haproxy -sf $(pidof haproxy) -- /etc/haproxy/global.cfg /etc/haproxy/customers/*.cfg
src/haproxy.c