Implement screen process stop() function
Implements screen process stop in ceilometer, cinder, glance, heat, n-vol
Change-Id: Ic5e02926f026d0e6f4b39846bfe77634dd414c60
diff --git a/lib/cinder b/lib/cinder
index de2debc..14c2df8 100644
--- a/lib/cinder
+++ b/lib/cinder
@@ -225,9 +225,12 @@
screen_it c-sch "cd $CINDER_DIR && $CINDER_BIN_DIR/cinder-scheduler --config-file $CINDER_CONF"
}
-# stop_cinder() - Stop running processes (non-screen)
+# stop_cinder() - Stop running processes
function stop_cinder() {
- # FIXME(dtroyer): stop only the cinder screen window?
+ # Kill the cinder screen windows
+ for serv in c-api c-sch c-vol; do
+ screen -S $SCREEN_NAME -p $serv -X kill
+ done
if is_service_enabled c-vol; then
stop_service tgt