Browse code

Merge "Use right service name when stopping tgt in unstack.sh"

Jenkins authored on 2012/08/10 06:19:47
Showing 1 changed files
... ...
@@ -54,7 +54,12 @@ if is_service_enabled cinder n-vol; then
54 54
         echo "iSCSI target cleanup needed:"
55 55
         echo "$TARGETS"
56 56
     fi
57
-    stop_service tgt
57
+
58
+    if [[ "$os_PACKAGE" = "deb" ]]; then
59
+        stop_service tgt
60
+    else
61
+        stop_service tgtd
62
+    fi
58 63
 fi
59 64
 
60 65
 if [[ -n "$UNSTACK_ALL" ]]; then