stop_swift() wasn't calling screen_stop() so the pid files and screen
sessions were not being cleaned up. DevStack doesn't really care but
Grenade does for the 'base' copy of DevStack. This should be backported
to stable/havana for this reason.
Change-Id: Ib5afb321cef2b7ad74e69a3fd0d1dad469f78b11
| ... | ... |
@@ -687,6 +687,11 @@ function stop_swift {
|
| 687 | 687 |
swift-init --run-dir=${SWIFT_DATA_DIR}/run all stop || true
|
| 688 | 688 |
fi |
| 689 | 689 |
# Dump all of the servers |
| 690 |
+ # Maintain the iteration as screen_stop() has some desirable side-effects |
|
| 691 |
+ for type in proxy object container account; do |
|
| 692 |
+ screen_stop s-${type}
|
|
| 693 |
+ done |
|
| 694 |
+ # Blast out any stragglers |
|
| 690 | 695 |
pkill -f swift- |
| 691 | 696 |
} |
| 692 | 697 |
|