Browse code

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

Chmouel Boudjnah authored on 2014/02/04 07:44:47
Showing 1 changed files
... ...
@@ -657,10 +657,8 @@ function stop_swift() {
657 657
     if type -p swift-init >/dev/null; then
658 658
         swift-init --run-dir=${SWIFT_DATA_DIR}/run all stop || true
659 659
     fi
660
-    for type in proxy object container account; do
661
-        # Dump all of the servers
662
-        pkill -f swift-
663
-    done
660
+    # Dump all of the servers
661
+    pkill -f swift-
664 662
 }
665 663
 
666 664
 # Restore xtrace