]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: Fix search for -p argument in systemd wrapper.
authorConrad Hoffmann <conrad@soundcloud.com>
Mon, 28 Jul 2014 21:22:43 +0000 (23:22 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 29 Jul 2014 09:04:20 +0000 (11:04 +0200)
commiteb2cf45b72a7e14c581276247381dc1ac76be2c0
tree08cb9701e5490d6922b9137b05049cc0754cc5b2
parente468d55998e134dac1b18d5d9d075ffd5691c827
BUG/MINOR: Fix search for -p argument in systemd wrapper.

Searching for the pid file in the list of arguments did not
take flags without parameters into account, like e.g. -de. Because
of this, the wrapper would use a different pid file than haproxy
if such an argument was specified before -p.

The new version can still yield a false positive for some crazy
situations, like your config file name starting with "-p", but
I think this is as good as it gets without using getopt or some
library.

Signed-off-by: Conrad Hoffmann <conrad@soundcloud.com>
src/haproxy-systemd-wrapper.c