Browse code

Use swift-init to kill swift processes.

- That pkill wasn't working.

Change-Id: Ibcb6fc6d9433dca08e0584ae811a2ca276cc469a

Chmouel Boudjnah authored on 2012/07/12 14:22:44
Showing 1 changed files
... ...
@@ -1375,7 +1375,7 @@ if is_service_enabled swift; then
1375 1375
     install_package memcached
1376 1376
 
1377 1377
     # We make sure to kill all swift processes first
1378
-    pkill -f -9 swift-
1378
+    swift-init all stop || true
1379 1379
 
1380 1380
     # We first do a bit of setup by creating the directories and
1381 1381
     # changing the permissions so we can run it as our user.