Skip to content

Commit a519f42

Browse files
committed
Fix unstack.sh to stop stop_dstat when it is disabled.
unstack.sh always stop dstat process, however unstack.sh show 'dstat: no process found' when dstat is disabled. This patch stop function of stop_dstat, when dstat is disabled. Change-Id: If9054826bed8a7fedd4f77ef4efef2c0ccd7f16e Closes-Bug: #1435148
1 parent 404d3af commit a519f42

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

unstack.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,9 @@ if is_service_enabled trove; then
173173
cleanup_trove
174174
fi
175175

176-
stop_dstat
176+
if is_service_enabled dstat; then
177+
stop_dstat
178+
fi
177179

178180
# Clean up the remainder of the screen processes
179181
SCREEN=$(which screen)

0 commit comments

Comments
 (0)