[Description]
The stop method is not working properly. I removed the --oknodo && --quiet and is returning (No /usr/sbin/haproxy found running; none killed)
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
[Description]
The stop method is not working properly. I removed the --oknodo && --quiet and is returning (No /usr/sbin/haproxy found running; none killed)
root@juju- machine- 1-lxc-0: ~# service haproxy status machine- 1-lxc-0: ~# ps -ef| grep haproxy haproxy. cfg -D -p /var/run/ haproxy. pid machine- 1-lxc-0: ~# service haproxy restart machine- 1-lxc-0: ~# ps -ef| grep haproxy haproxy. cfg -D -p /var/run/ haproxy. pid haproxy. cfg -D -p /var/run/ haproxy. pid machine- 1-lxc-0: ~# service haproxy restart machine- 1-lxc-0: ~# ps -ef| grep haproxy haproxy. cfg -D -p /var/run/ haproxy. pid haproxy. cfg -D -p /var/run/ haproxy. pid haproxy. cfg -D -p /var/run/ haproxy. pid machine- 1-lxc-0: ~# service haproxy stop machine- 1-lxc-0: ~# ps -ef| grep haproxy haproxy. cfg -D -p /var/run/ haproxy. pid haproxy. cfg -D -p /var/run/ haproxy. pid haproxy. cfg -D -p /var/run/ haproxy. pid machine- 1-lxc-0: ~# service haproxy start machine- 1-lxc-0: ~# ps -ef| grep haproxy haproxy. cfg -D -p /var/run/ haproxy. pid haproxy. cfg -D -p /var/run/ haproxy. pid haproxy. cfg -D -p /var/run/ haproxy. pid haproxy. cfg -D -p /var/run/ haproxy. pid
haproxy is running.
root@juju-
haproxy 1269 1 0 14:33 ? 00:00:00 /usr/sbin/haproxy -f /etc/haproxy/
root 1513 906 0 14:33 pts/6 00:00:00 grep --color=auto haproxy
root@juju-
* Restarting haproxy haproxy
...done.
root@juju-
haproxy 1269 1 0 14:33 ? 00:00:00 /usr/sbin/haproxy -f /etc/haproxy/
haproxy 2169 1 0 14:33 ? 00:00:00 /usr/sbin/haproxy -f /etc/haproxy/
root 2277 906 0 14:33 pts/6 00:00:00 grep --color=auto haproxy
root@juju-
* Restarting haproxy haproxy
...done.
root@juju-
haproxy 1269 1 0 14:33 ? 00:00:00 /usr/sbin/haproxy -f /etc/haproxy/
haproxy 2169 1 0 14:33 ? 00:00:00 /usr/sbin/haproxy -f /etc/haproxy/
haproxy 2505 1 0 14:33 ? 00:00:00 /usr/sbin/haproxy -f /etc/haproxy/
root 2523 906 0 14:33 pts/6 00:00:00 grep --color=auto haproxy
root@juju-
* Stopping haproxy haproxy
...done.
root@juju-
haproxy 1269 1 0 14:33 ? 00:00:00 /usr/sbin/haproxy -f /etc/haproxy/
haproxy 2169 1 0 14:33 ? 00:00:00 /usr/sbin/haproxy -f /etc/haproxy/
haproxy 2505 1 0 14:33 ? 00:00:00 /usr/sbin/haproxy -f /etc/haproxy/
root 2584 906 0 14:34 pts/6 00:00:00 grep --color=auto haproxy
root@juju-
* Starting haproxy haproxy
...done.
root@juju-
haproxy 1269 1 0 14:33 ? 00:00:00 /usr/sbin/haproxy -f /etc/haproxy/
haproxy 2169 1 0 14:33 ? 00:00:00 /usr/sbin/haproxy -f /etc/haproxy/
haproxy 2505 1 0 14:33 ? 00:00:00 /usr/sbin/haproxy -f /etc/haproxy/
haproxy 2591 1 0 14:34 ? 00:00:00 /usr/sbin/haproxy -f /etc/haproxy/
root 2610 906 0 14:34 pts/6 00:00:00 grep --color=auto haproxy