Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions python/lib/cloudutils/serviceConfigServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so if nostart is false (start is true ??) the service is stopped. Am I understanding this wrong? it seems like we don't want this here and not unconditionally either but only if nostart is true.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the original behavior of the script, before --no-start was added. When --no-start is NOT specified, the script tries to make sure that the service is stopped before starting it again.

if self.syscfg.svo.enableService("cloudstack-management"):
return True
else:
Expand Down