Implement screen process stop() function
Implements screen process stop in ceilometer, cinder, glance, heat, n-vol
Change-Id: Ic5e02926f026d0e6f4b39846bfe77634dd414c60
diff --git a/lib/heat b/lib/heat
index e713b39..6e823f2 100644
--- a/lib/heat
+++ b/lib/heat
@@ -173,10 +173,12 @@
screen_it h-meta "cd $HEAT_DIR; bin/heat-metadata --config-dir=$HEAT_CONF_DIR/heat-metadata.conf"
}
-# stop_heat() - Stop running processes (non-screen)
+# stop_heat() - Stop running processes
function stop_heat() {
- # This function intentionally left blank
- :
+ # Kill the cinder screen windows
+ for serv in h-eng h-api-cfn h-api-cw h-meta; do
+ screen -S $SCREEN_NAME -p $serv -X kill
+ done
}
# Restore xtrace