Skip to content

Commit 6b2eb3b

Browse files
bluebottlejeff
authored andcommitted
CLOUDSTACK-9645: Moving stop of management in config inside if statement.
It will only run the stop command when --no-start is specified.
1 parent e8de07a commit 6b2eb3b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

python/lib/cloudutils/serviceConfigServer.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,8 @@ def checkHostName():
137137
except:
138138
pass
139139

140-
self.syscfg.svo.stopService("cloudstack-management")
141-
142140
if self.syscfg.env.noStart == False:
141+
self.syscfg.svo.stopService("cloudstack-management")
143142
if self.syscfg.svo.enableService("cloudstack-management"):
144143
return True
145144
else:

0 commit comments

Comments
 (0)