From 90dd96d4785bf12d66199c3fc8e2ea6a83090602 Mon Sep 17 00:00:00 2001 From: Vincent Untz Date: Thu, 13 Dec 2012 08:59:57 +0100 Subject: [PATCH] Use the right service name for tgt/tgtd in stop_cinder Change-Id: I58cf8cdf88a3edebed729f4460e8ce222db3664d --- lib/cinder | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/cinder b/lib/cinder index 16cbaf361a..586cfcbb84 100644 --- a/lib/cinder +++ b/lib/cinder @@ -265,7 +265,11 @@ function stop_cinder() { done if is_service_enabled c-vol; then - stop_service tgt + if is_ubuntu; then + stop_service tgt + else + stop_service tgtd + fi fi }