Browse code

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

Mahito OGURA authored on 2015/03/23 15:19:57
Showing 1 changed files
... ...
@@ -173,7 +173,9 @@ if is_service_enabled trove; then
173 173
     cleanup_trove
174 174
 fi
175 175
 
176
-stop_dstat
176
+if is_service_enabled dstat; then
177
+    stop_dstat
178
+fi
177 179
 
178 180
 # Clean up the remainder of the screen processes
179 181
 SCREEN=$(which screen)