From 50120fa047726c8ff9b76ef8bd9294bab0c7bb5d Mon Sep 17 00:00:00 2001 From: Li Ma Date: Sun, 13 Dec 2015 10:41:34 +0800 Subject: [PATCH] Kill neutron-rootwrap-daemon when stop neutron service Neutron-rootwrap-daemon cannot be killed when you stop neutron services, so here we add the right command in the neutron stop-service scripts. Change-Id: I91fefb277427e0e16ff59760b7255e4c7eee1792 Closes-Bug: #1525601 --- lib/neutron-legacy | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/neutron-legacy b/lib/neutron-legacy index 6af44e6ab8..47fa650953 100644 --- a/lib/neutron-legacy +++ b/lib/neutron-legacy @@ -780,6 +780,10 @@ function stop_neutron_other { if is_service_enabled q-metering; then neutron_metering_stop fi + + if [[ "$Q_USE_ROOTWRAP_DAEMON" == "True" ]]; then + sudo pkill -9 -f $NEUTRON_ROOTWRAP-daemon || : + fi } # stop_neutron() - Stop running processes (non-screen)