Comment 2 for bug 1477198

Revision history for this message
Jorge Niedbalski (niedbalski) wrote : Re: Stop doesn't works on Trusty

The attached patch fixes the issue.

root@juju-testing-machine-15:/home/ubuntu# service haproxy start
 * Starting haproxy haproxy [ OK ]
root@juju-testing-machine-15:/home/ubuntu# ps -fea |grep haproxy
haproxy 28338 1 0 15:29 ? 00:00:00 /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -D -p /var/run/haproxy.pid
root@juju-testing-machine-15:/home/ubuntu# service haproxy stop
 * Stopping haproxy haproxy [ OK ]
root@juju-testing-machine-15:/home/ubuntu# ps -fea |grep haproxy
root@juju-testing-machine-15:/home/ubuntu# service haproxy status
haproxy not running.
root@juju-testing-machine-15:/home/ubuntu# service haproxy start
 * Starting haproxy haproxy
                                                                                                                                                                  [ OK ]
root@juju-testing-machine-15:/home/ubuntu# ps -fea |grep haproxy
haproxy 28398 1 0 15:29 ? 00:00:00 /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -D -p /var/run/haproxy.pid
root@juju-testing-machine-15:/home/ubuntu# service haproxy restart
 * Restarting haproxy haproxy [ OK ]
root@juju-testing-machine-15:/home/ubuntu# ps -fea |grep haproxy
haproxy 28419 1 0 15:30 ? 00:00:00 /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -D -p /var/run/haproxy.pid
root@juju-testing-machine-15:/home/ubuntu# service haproxy stop
 * Stopping haproxy haproxy [ OK ]
root@juju-testing-machine-15:/home/ubuntu# service haproxy status
haproxy not running.