From 8c601bcc5199d35bd113a0aa37d7f8ba7335cb92 Mon Sep 17 00:00:00 2001 From: Mahito OGURA Date: Mon, 23 Mar 2015 15:19:57 +0900 Subject: [PATCH] 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. Backported from https://review.openstack.org/#/c/166709/ Change-Id: If9054826bed8a7fedd4f77ef4efef2c0ccd7f16e Closes-Bug: #1435148 --- unstack.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/unstack.sh b/unstack.sh index fee608e17b..8513478e15 100755 --- a/unstack.sh +++ b/unstack.sh @@ -163,7 +163,9 @@ if is_service_enabled trove; then cleanup_trove fi -stop_dstat +if is_service_enabled dstat; then + stop_dstat +fi # Clean up the remainder of the screen processes SCREEN=$(which screen)