Merge "kill throws an error while finding pid in quantum dhcp agent section"
This commit is contained in:
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user