Use right service name when stopping tgt in unstack.sh

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

Change-Id: I357b47cf117a5e615eb4af9603b7c5670e5cff1c
This commit is contained in:
Sascha Peilicke 2012-07-18 13:27:32 +02:00 committed by Vincent Untz
parent 3d42cdc766
commit 5da67fe42f

View File

@ -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