haproxy stop action does not work
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Cloud Archive |
New
|
Undecided
|
Unassigned |
Bug Description
Observation:
On Trusty the start-stop-daemon (man start-stop-daemon) just supports the --pidfile parameter, since utopic, that parameter was split on --pidfile --ppid and --pid parameters.
On dev release the stop function actually makes use of the --pid parameter , which is unexistant on the trusty version of start-stop-daemon, for this reason any backport made from dev to trusty will consequently not work.
Note that this bug also affects Kilo backports.
Please also note that this is actually fixed on trusty-updates via
the bug http://
With liberty:
*** 1.5.14-1~cloud2 0
500 http://
"service haproxy stop" does not work:
The stop action in /etc/init.d/haproxy does this:
--pid is not a valid option for trusty's start-stop-daemon.
In trusty proper, that stop action does:
Example:
No haproxy running yet:
root@juju-
104776 pts/2 S+ 0:00 | \_ grep --color=auto haproxy
let's start one:
root@juju-
* Starting haproxy haproxy
...done.
Ok, it's there:
root@juju-
104786 ? Ss 0:00 /usr/sbin/haproxy -f /etc/haproxy/
Let's restart:
root@juju-
* Restarting haproxy haproxy
...done.
And now I have two!
root@juju-
104786 ? Ss 0:00 /usr/sbin/haproxy -f /etc/haproxy/
104803 ? Ss 0:00 /usr/sbin/haproxy -f /etc/haproxy/
root@juju-
Let's try to kill one just like the initscript does it, with the --pid option that does not exist in trusty:
root@juju-
No /usr/sbin/haproxy found running; none killed.
Still alive:
root@juju-
104786 ? Ss 0:00 /usr/sbin/haproxy -f /etc/haproxy/
104803 ? Ss 0:00 /usr/sbin/haproxy -f /etc/haproxy/
root@juju-
description: | updated |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
tags: | added: sts |
description: | updated |
description: | updated |
description: | updated |
description: | updated |
A fix for that has been uploaded and is waiting in the SRU queue. please see the original bug for details