aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChmouel Boudjnah <chmouel@enovance.com>2014-02-03 23:44:47 +0100
committerChmouel Boudjnah <chmouel@enovance.com>2014-02-03 23:44:47 +0100
commitf36a9b2136b4ba56ac2989f7829c55b4eb1c08af (patch)
tree79e69c8b12bfb493f9495030260f6e60c2fc5dc9
parentdaa0ce2f052eeeae2ee0b2dc1265279e4528f880 (diff)
No need to loop over with pkill -f
I guess four times is better than one but if we need four times to kill swift processes there is something pretty bad with it. Change-Id: Id2ea2f4ca60feb9fddc7b3181063760d2044b421
-rw-r--r--lib/swift6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/swift b/lib/swift
index 54d6f1c..28ca8a8 100644
--- a/lib/swift
+++ b/lib/swift
@@ -657,10 +657,8 @@ function stop_swift() {
if type -p swift-init >/dev/null; then
swift-init --run-dir=${SWIFT_DATA_DIR}/run all stop || true
fi
- for type in proxy object container account; do
- # Dump all of the servers
- pkill -f swift-
- done
+ # Dump all of the servers
+ pkill -f swift-
}
# Restore xtrace