haproxy does not stop when using service/invoke-rc.d
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
trusty-backports |
New
|
Undecided
|
Unassigned |
Bug Description
When trying to stop haproxy using
sudo service haproxy stop
or
sudo invoke-rc.d haproxy stop
The tools exit with status 0, but haproxy is still running.
Example:
sudo invoke-rc.d haproxy start
* Starting haproxy haproxy [ OK ]
be@fe2-lb1-test:~$ echo $?
0
be@fe2-lb1-test:~$ sudo invoke-rc.d haproxy stop
* Stopping haproxy haproxy [ OK ]
be@fe2-lb1-test:~$ echo $?
0
be@fe2-lb1-test:~$ ps aux |grep haproxy
haproxy 31719 0.0 1.4 33500 7100 ? Ss 20:08 0:00 /usr/sbin/haproxy -f /etc/haproxy/
be 31782 0.0 0.4 11748 2232 pts/2 S+ 20:09 0:00 grep --color=auto haproxy
Haproxy version:
$ aptitude show haproxy
Package: haproxy
State: installed
Automatically installed: no
Version: 1.5.4-1ubuntu2.
description: | updated |