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