Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable and start the evmserverd service after the database is configured #4989

Merged

Conversation

carbonin
Copy link
Member

@@ -64,6 +64,9 @@ def activate

def post_activation
ServiceGroup.new.restart_services
evm_service = LinuxAdmin::Service.new("evmserverd")
evm_service.enable
evm_service.start
Copy link
Member

Choose a reason for hiding this comment

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

this is good
Can we do:

LinuxAdmin::Service.new("evmserverd").enable.start

Hmm, may require a change over in Service. I'll put PR in for that if it doesn't exist.

this requires test changes (and_call_original)

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

cool. so self is already in there. if you have the bandwidth, this would be cool. otherwise, just say no and we can merge.

@kbrock
Copy link
Member

kbrock commented Oct 20, 2015

I'm good with this regardless of comments.

👍

@carbonin carbonin force-pushed the enable_evmserverd_after_db_configuration branch from 1ab4254 to dc819dd Compare October 20, 2015 14:49
@@ -64,6 +64,7 @@ def activate

def post_activation
ServiceGroup.new.restart_services
evm_service = LinuxAdmin::Service.new("evmserverd").enable.start
Copy link
Member

Choose a reason for hiding this comment

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

@carbonin Why are we setting the local variable evm_service just as method is about to exit? Or is it not a local variable?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah you're right, forgot to drop that when I combined the new enable and start lines. I'll change it now.

@carbonin carbonin force-pushed the enable_evmserverd_after_db_configuration branch from dc819dd to 7321142 Compare October 20, 2015 15:01
@miq-bot
Copy link
Member

miq-bot commented Oct 20, 2015

Checked commit carbonin@7321142 with ruby 1.9.3, rubocop 0.34.2, and haml-lint 0.13.0
2 files checked, 0 offenses detected
Everything looks good. 👍

chessbyte added a commit that referenced this pull request Oct 20, 2015
…figuration

Enable and start the evmserverd service after the database is configured
@chessbyte chessbyte merged commit 4e05eff into ManageIQ:master Oct 20, 2015
@chessbyte chessbyte added this to the Sprint 31 Ending Oct 26, 2015 milestone Oct 20, 2015
carbonin added a commit to carbonin/manageiq-appliance-build that referenced this pull request Oct 20, 2015
The service will be enabled and started after the database is configured
by the changes in ManageIQ/manageiq#4989

https://bugzilla.redhat.com/show_bug.cgi?id=1272604
@carbonin carbonin deleted the enable_evmserverd_after_db_configuration branch November 13, 2015 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants