[Pkg-haproxy-maintainers] Bug#804530: Bug#804530: haproxy: Ensure stop action works on pre-systemd versions of Debian (and Ubuntu)
Vincent Bernat
bernat at debian.org
Mon Nov 9 10:50:25 UTC 2015
❦ 9 novembre 2015 10:42 GMT, James Page <james.page at ubuntu.com> :
> ❦ 9 novembre 2015 09:47 GMT, James Page <james.page at ubuntu.com> :
>
> > In Ubuntu, the attached patch was applied to achieve the
> following:
> >
> > [ Jorge Niedbalski ]
> > * debian/haproxy.init:
> > + Pass the pidfile to the --pidfile argument instead of the PID
> > number, easing backports to pre-systemd versions of Ubuntu
> > and Debian (LP: #1477198).
> >
> > On older Ubuntu versions (pre systemd), the stop action was not
> > working correctly in the init script; this patch resolves that
> > issue.
>
> I don't think this is compatible with multiple HAProxy processes
> (nbproc > 1). See how we do that when start-stop-daemon doesn't
> support --pid:
>
>
> Hmm - so start-stop-daemon will generate multiple pids into the
> pidfile when nbproc > 1?
No, haproxy will write multiple PID to the pidfile when nbproc > 1 (in
haproxy.cfg). I don't think that start-stop-daemon is able to handle
multiple PID in pidfile, hence the loop.
--
My only love sprung from my only hate!
Too early seen unknown, and known too late!
-- William Shakespeare, "Romeo and Juliet"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-haproxy-maintainers/attachments/20151109/294b1e0b/attachment.sig>
More information about the Pkg-haproxy-maintainers
mailing list