commit | d41d32e7cab1e871f67fc68794c4e03572ecbffa | [log] [tgz] |
---|---|---|
author | Jenkins <jenkins@review.openstack.org> | Wed Oct 10 20:51:38 2012 +0000 |
committer | Gerrit Code Review <review@openstack.org> | Wed Oct 10 20:51:38 2012 +0000 |
tree | 1bf60206bb631c2ac8d29d174133e804254ed672 | |
parent | 7e4fa84fd51bc91047d38f3f59566fac468eea1e [diff] | |
parent | a9c4a8aff202225cd02239c9c76e36ef76f88de4 [diff] |
Merge "kill throws an error while finding pid in quantum dhcp agent section"
diff --git a/unstack.sh b/unstack.sh index 1bace15..49f1e8b 100755 --- a/unstack.sh +++ b/unstack.sh
@@ -110,5 +110,6 @@ # Quantum dhcp agent runs dnsmasq if is_service_enabled q-dhcp; then - sudo kill -9 $(ps aux | awk '/[d]nsmasq.+interface=tap/ { print $2 }') + pid=$(ps aux | awk '/[d]nsmasq.+interface=tap/ { print $2 }') + [ ! -z $pid ] && sudo kill -9 $pid fi