Comment 10 for bug 1494141

Revision history for this message
Louis Bouchard (louis) wrote : Re: HAProxy 1.5 init script does not terminate processes

Hello,

Unfortunately Jorge's patch is incomplete. The reason for the looping on pid is that, if nproc > 1, the pidfile will contain more than one PID and using --pidfile will only kill the first one.

The proposed patch here will fix both situation, i.e. the fact that --pid is silently ignored and that if nproc > 1, all processes will be killed.

I think we need to create new bug for Trusty as, if nproc > 1, only the first PID will be killed.