Browse code

Use right service name when stopping tgt in unstack.sh

On non-deb systems, 'tgt' is 'tgtd'.

Change-Id: I357b47cf117a5e615eb4af9603b7c5670e5cff1c

Sascha Peilicke authored on 2012/07/18 20:27:32
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