*** 1.5.14-1~cloud2 0 500 http://ubuntu-cloud.archive.canonical.com/ubuntu/ trusty-updates/liberty/main amd64 Packages
"service haproxy stop" does not work:
The stop action does this: start-stop-daemon --quiet --oknodo --stop \ --retry 5 --pid $pid --exec $HAPROXY || ret=$?
start-stop-daemon doesn't complain about --pid not being a valid option...
root@juju-machine-1-lxc-2:~# ps fxaw|grep haproxy 104776 pts/2 S+ 0:00 | \_ grep --color=auto haproxy root@juju-machine-1-lxc-2:~# service haproxy start * Starting haproxy haproxy ...done. root@juju-machine-1-lxc-2:~# ps fxaw|grep haproxy|grep -v grep 104786 ? Ss 0:00 /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -D -p /var/run/haproxy.pid root@juju-machine-1-lxc-2:~# service haproxy restart * Restarting haproxy haproxy ...done. root@juju-machine-1-lxc-2:~# ps fxaw|grep haproxy|grep -v grep 104786 ? Ss 0:00 /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -D -p /var/run/haproxy.pid 104803 ? Ss 0:00 /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -D -p /var/run/haproxy.pid root@juju-machine-1-lxc-2:~#
root@juju-machine-1-lxc-2:~# start-stop-daemon --oknodo --stop --retry 5 --pid 104803 --exec /usr/sbin/haproxy No /usr/sbin/haproxy found running; none killed. root@juju-machine-1-lxc-2:~# ps fxaw|grep haproxy|grep -v grep 104786 ? Ss 0:00 /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -D -p /var/run/haproxy.pid 104803 ? Ss 0:00 /usr/sbin/haproxy -f /etc/haproxy/haproxy.cfg -D -p /var/run/haproxy.pid root@juju-machine-1-lxc-2:~#
*** 1.5.14-1~cloud2 0 ubuntu- cloud.archive. canonical. com/ubuntu/ trusty- updates/ liberty/ main amd64 Packages
500 http://
"service haproxy stop" does not work:
The stop action does this:
start- stop-daemon --quiet --oknodo --stop \
--retry 5 --pid $pid --exec $HAPROXY || ret=$?
start-stop-daemon doesn't complain about --pid not being a valid option...
root@juju- machine- 1-lxc-2: ~# ps fxaw|grep haproxy machine- 1-lxc-2: ~# service haproxy start machine- 1-lxc-2: ~# ps fxaw|grep haproxy|grep -v grep haproxy. cfg -D -p /var/run/ haproxy. pid machine- 1-lxc-2: ~# service haproxy restart machine- 1-lxc-2: ~# ps fxaw|grep haproxy|grep -v grep haproxy. cfg -D -p /var/run/ haproxy. pid haproxy. cfg -D -p /var/run/ haproxy. pid machine- 1-lxc-2: ~#
104776 pts/2 S+ 0:00 | \_ grep --color=auto haproxy
root@juju-
* Starting haproxy haproxy
...done.
root@juju-
104786 ? Ss 0:00 /usr/sbin/haproxy -f /etc/haproxy/
root@juju-
* Restarting haproxy haproxy
...done.
root@juju-
104786 ? Ss 0:00 /usr/sbin/haproxy -f /etc/haproxy/
104803 ? Ss 0:00 /usr/sbin/haproxy -f /etc/haproxy/
root@juju-
root@juju- machine- 1-lxc-2: ~# start-stop-daemon --oknodo --stop --retry 5 --pid 104803 --exec /usr/sbin/haproxy machine- 1-lxc-2: ~# ps fxaw|grep haproxy|grep -v grep haproxy. cfg -D -p /var/run/ haproxy. pid haproxy. cfg -D -p /var/run/ haproxy. pid machine- 1-lxc-2: ~#
No /usr/sbin/haproxy found running; none killed.
root@juju-
104786 ? Ss 0:00 /usr/sbin/haproxy -f /etc/haproxy/
104803 ? Ss 0:00 /usr/sbin/haproxy -f /etc/haproxy/
root@juju-