From 38182ec8ec693225fbc28d4a7f1826ce4a338c5e Mon Sep 17 00:00:00 2001 From: Pall Helgason Date: Tue, 8 Dec 2015 13:28:08 +0000 Subject: [PATCH] Moving stop of management in config inside if statement. It will only run the stop command when --no-start is specified. --- python/lib/cloudutils/serviceConfigServer.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python/lib/cloudutils/serviceConfigServer.py b/python/lib/cloudutils/serviceConfigServer.py index 7812fff4f730..d1d24759adc2 100644 --- a/python/lib/cloudutils/serviceConfigServer.py +++ b/python/lib/cloudutils/serviceConfigServer.py @@ -138,9 +138,8 @@ def checkHostName(): except: pass - self.syscfg.svo.stopService("cloudstack-management") - if self.syscfg.env.noStart == False: + self.syscfg.svo.stopService("cloudstack-management") if self.syscfg.svo.enableService("cloudstack-management"): return True else: