Browse code

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

Gary Kotton authored on 2012/07/18 20:43:01
Showing 1 changed files
... ...
@@ -63,3 +63,8 @@ if [[ -n "$UNSTACK_ALL" ]]; then
63 63
         stop_service mysql
64 64
     fi
65 65
 fi
66
+
67
+# Quantum dhcp agent runs dnsmasq
68
+if is_service_enabled q-dhcp; then
69
+    sudo kill -9 $(ps aux | awk '/[d]nsmasq.+interface=tap/ { print $2 }')
70
+fi