net-proxy/haproxy: Handle stopping multiple proc
authorBertrand Jacquin <bertrand@jacquin.bzh>
Tue, 13 Dec 2016 00:43:48 +0000 (00:43 +0000)
committerRobin H. Johnson <robbat2@gentoo.org>
Mon, 22 May 2017 18:43:39 +0000 (11:43 -0700)
commitdc8d1598df949105b59ad6d7fda54cc67dbb24e9
tree4a4eb6008b5a063b57ecd68c71165f2e2edfcafd
parent914db7293593de5df5c323ccc393b470bb8b2062
net-proxy/haproxy: Handle stopping multiple proc

When haproxy is configured to use more than 1 proc, it creates a PID
file listing all PID, with 1 PID per line. Since start-stop-daemon only
handle 1 PID per pidfile, we need to had some magic in the init script in
order to stop every process haproxy previously started.

See: https://bugs.gentoo.org/show_bug.cgi?id=584410

Package-Manager: portage-2.3.0
(cherry picked from commit 551acd9853212fd0debf4563312af88908b7b497)
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Fixes: https://github.com/gentoo/gentoo/pull/3104/
net-proxy/haproxy/files/haproxy.initd-r3