Browse code

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

Jenkins authored on 2012/10/11 05:51:38
Showing 1 changed files
... ...
@@ -110,5 +110,6 @@ fi
110 110
 
111 111
 # Quantum dhcp agent runs dnsmasq
112 112
 if is_service_enabled q-dhcp; then
113
-    sudo kill -9 $(ps aux | awk '/[d]nsmasq.+interface=tap/ { print $2 }')
113
+    pid=$(ps aux | awk '/[d]nsmasq.+interface=tap/ { print $2 }')
114
+    [ ! -z $pid ] && sudo kill -9 $pid
114 115
 fi