Browse code

Use the right service name for tgt/tgtd in stop_cinder

Change-Id: I58cf8cdf88a3edebed729f4460e8ce222db3664d

Vincent Untz authored on 2012/12/13 16:59:57
Showing 1 changed files
... ...
@@ -265,7 +265,11 @@ function stop_cinder() {
265 265
     done
266 266
 
267 267
     if is_service_enabled c-vol; then
268
-        stop_service tgt
268
+        if is_ubuntu; then
269
+            stop_service tgt
270
+        else
271
+            stop_service tgtd
272
+        fi
269 273
     fi
270 274
 }
271 275