Skip to content

Commit 5da67fe

Browse files
saschpevuntz
authored andcommitted
Use right service name when stopping tgt in unstack.sh
On non-deb systems, 'tgt' is 'tgtd'. Change-Id: I357b47cf117a5e615eb4af9603b7c5670e5cff1c
1 parent 3d42cdc commit 5da67fe

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

unstack.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,12 @@ if is_service_enabled cinder n-vol; then
5454
echo "iSCSI target cleanup needed:"
5555
echo "$TARGETS"
5656
fi
57-
stop_service tgt
57+
58+
if [[ "$os_PACKAGE" = "deb" ]]; then
59+
stop_service tgt
60+
else
61+
stop_service tgtd
62+
fi
5863
fi
5964

6065
if [[ -n "$UNSTACK_ALL" ]]; then

0 commit comments

Comments
 (0)