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:
parent
3d42cdc766
commit
5da67fe42f
@ -54,7 +54,12 @@ if is_service_enabled cinder n-vol; then
|
|||||||
echo "iSCSI target cleanup needed:"
|
echo "iSCSI target cleanup needed:"
|
||||||
echo "$TARGETS"
|
echo "$TARGETS"
|
||||||
fi
|
fi
|
||||||
stop_service tgt
|
|
||||||
|
if [[ "$os_PACKAGE" = "deb" ]]; then
|
||||||
|
stop_service tgt
|
||||||
|
else
|
||||||
|
stop_service tgtd
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -n "$UNSTACK_ALL" ]]; then
|
if [[ -n "$UNSTACK_ALL" ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user