Ensure that dnsmasq is terminated when running unstack.sh

If the Quantum dhcp-agent is enabled then we ensure that the dnsmasq
process is termated when running unstack.sh

Change-Id: I0aee8b806c61dff42400a3b8552b7c748e9c5adf
This commit is contained in:
Gary Kotton 2012-07-18 07:43:01 -04:00
parent 3aabdbad1d
commit 722fe6732a

View File

@ -63,3 +63,8 @@ if [[ -n "$UNSTACK_ALL" ]]; then
stop_service mysql stop_service mysql
fi fi
fi 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 }')
fi