From 5da67fe42f88987875bbfa40d9c81a7519e72abc Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Wed, 18 Jul 2012 13:27:32 +0200 Subject: [PATCH] Use right service name when stopping tgt in unstack.sh On non-deb systems, 'tgt' is 'tgtd'. Change-Id: I357b47cf117a5e615eb4af9603b7c5670e5cff1c --- unstack.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/unstack.sh b/unstack.sh index 6a55a0a1aa..64de91500f 100755 --- a/unstack.sh +++ b/unstack.sh @@ -54,7 +54,12 @@ if is_service_enabled cinder n-vol; then echo "iSCSI target cleanup needed:" echo "$TARGETS" fi - stop_service tgt + + if [[ "$os_PACKAGE" = "deb" ]]; then + stop_service tgt + else + stop_service tgtd + fi fi if [[ -n "$UNSTACK_ALL" ]]; then