Marking for Xenial and Wily as well; although these release use systemd, they are the source for the cloud archive and I'd prefer not to carry a delta as it means we pickup any other fixes automatically including security updates.
-- You received this bug notification because you are a member of Ubuntu High Availability Team, which is subscribed to haproxy in Ubuntu. https://bugs.launchpad.net/bugs/1477198 Title: Stop doesn't work on Trusty Status in Ubuntu Cloud Archive: Invalid Status in Ubuntu Cloud Archive kilo series: Invalid Status in Ubuntu Cloud Archive liberty series: Confirmed Status in haproxy package in Ubuntu: New Status in haproxy source package in Trusty: Fix Released Status in haproxy source package in Wily: New Status in haproxy source package in Xenial: New Bug description: [Description] The stop method is not working properly. I removed the --oknodo && --quiet and is returning (No /usr/sbin/haproxy found running; none killed) I think this is a regression caused by the incorporation of this lines on the stop method: + for pid in $(cat $PIDFILE); do + start-stop-daemon --quiet --oknodo --stop \ + --retry 5 --pid $pid --exec $HAPROXY || ret=$? root@juju-machine-1-lxc-0:~# service haproxy status haproxy is running. root@juju-machine-1-lxc-0:~# ps -ef| grep haproxy haproxy 1269 1 0 14:33 ? 00:00:00 /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -D -p /var/run/haproxy.pid root 1513 906 0 14:33 pts/6 00:00:00 grep --color=auto haproxy root@juju-machine-1-lxc-0:~# service haproxy restart * Restarting haproxy haproxy ...done. root@juju-machine-1-lxc-0:~# ps -ef| grep haproxy haproxy 1269 1 0 14:33 ? 00:00:00 /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -D -p /var/run/haproxy.pid haproxy 2169 1 0 14:33 ? 00:00:00 /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -D -p /var/run/haproxy.pid root 2277 906 0 14:33 pts/6 00:00:00 grep --color=auto haproxy root@juju-machine-1-lxc-0:~# service haproxy restart * Restarting haproxy haproxy ...done. root@juju-machine-1-lxc-0:~# ps -ef| grep haproxy haproxy 1269 1 0 14:33 ? 00:00:00 /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -D -p /var/run/haproxy.pid haproxy 2169 1 0 14:33 ? 00:00:00 /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -D -p /var/run/haproxy.pid haproxy 2505 1 0 14:33 ? 00:00:00 /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -D -p /var/run/haproxy.pid root 2523 906 0 14:33 pts/6 00:00:00 grep --color=auto haproxy root@juju-machine-1-lxc-0:~# service haproxy stop * Stopping haproxy haproxy ...done. root@juju-machine-1-lxc-0:~# ps -ef| grep haproxy haproxy 1269 1 0 14:33 ? 00:00:00 /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -D -p /var/run/haproxy.pid haproxy 2169 1 0 14:33 ? 00:00:00 /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -D -p /var/run/haproxy.pid haproxy 2505 1 0 14:33 ? 00:00:00 /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -D -p /var/run/haproxy.pid root 2584 906 0 14:34 pts/6 00:00:00 grep --color=auto haproxy root@juju-machine-1-lxc-0:~# service haproxy start * Starting haproxy haproxy ...done. root@juju-machine-1-lxc-0:~# ps -ef| grep haproxy haproxy 1269 1 0 14:33 ? 00:00:00 /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -D -p /var/run/haproxy.pid haproxy 2169 1 0 14:33 ? 00:00:00 /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -D -p /var/run/haproxy.pid haproxy 2505 1 0 14:33 ? 00:00:00 /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -D -p /var/run/haproxy.pid haproxy 2591 1 0 14:34 ? 00:00:00 /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -D -p /var/run/haproxy.pid root 2610 906 0 14:34 pts/6 00:00:00 grep --color=auto haproxy [Impact] - 'service stop/restart' doesn't works properly. [Test Case] - Install latest haproxy package. - Run service haproxy restart * Restarting haproxy haproxy ...done. root@juju-machine-1-lxc-0:~# ps -ef| grep haproxy haproxy 1269 1 0 14:33 ? 00:00:00 /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -D -p /var/run/haproxy.pid haproxy 2169 1 0 14:33 ? 00:00:00 /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -D -p /var/run/haproxy.pid - Run service haproxy stop root@juju-machine-1-lxc-0:~# service haproxy stop * Stopping haproxy haproxy ...done. root@juju-machine-1-lxc-0:~# ps -ef| grep haproxy haproxy 1269 1 0 14:33 ? 00:00:00 /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -D -p /var/run/haproxy.pid haproxy 2169 1 0 14:33 ? 00:00:00 /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -D -p /var/run/haproxy.pid [Other info] Related bugs: * bug 1481737: HAProxy init script does not work correctly with nbproc configuration option To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-archive/+bug/1477198/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~ubuntu-ha Post to : [email protected] Unsubscribe : https://launchpad.net/~ubuntu-ha More help : https://help.launchpad.net/ListHelp

