Merge "kill throws an error while finding pid in quantum dhcp agent section"

This commit is contained in:
Jenkins 2012-10-10 20:51:38 +00:00 committed by Gerrit Code Review
commit d41d32e7ca

@ -110,5 +110,6 @@ fi
# 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