Fix Swift process kill
stop_swift() was not killing all swift processes properly. Change to
manually clean up all screen services with pkill.
Closes-bug: 1268794
Change-Id: Ibb7a2e0dd10a313609f05963264087f82f6f00e2
diff --git a/lib/swift b/lib/swift
index 44c230b..37b630c 100644
--- a/lib/swift
+++ b/lib/swift
@@ -652,8 +652,10 @@
if type -p swift-init >/dev/null; then
swift-init --run-dir=${SWIFT_DATA_DIR}/run all stop || true
fi
- # Dump the proxy server
- sudo pkill -f swift-proxy-server
+ for type in proxy object container account; do
+ # Dump all of the servers
+ pkill -f swift-
+ done
}
# Restore xtrace