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

feat(halyard): Added hal shutdown command. #980

Merged
merged 7 commits into from
Jun 25, 2018
Merged

feat(halyard): Added hal shutdown command. #980

merged 7 commits into from
Jun 25, 2018

Conversation

brandonnelson3
Copy link
Contributor

No description provided.


@Getter(AccessLevel.PUBLIC)
private String description = "Shutdown the halyard daemon.";

Copy link
Member

Choose a reason for hiding this comment

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

Extra newline?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.


@Override
protected void executeThis() {
Daemon.shutdown();
Copy link
Member

Choose a reason for hiding this comment

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

Should we print the shutdown message if it fails?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It already prints if halyard isn't up and running:

$ hal shutdown
! ERROR Failed to connect to localhost/0:0:0:0:0:0:0:1:8064
? Is your daemon running?

Copy link
Member

Choose a reason for hiding this comment

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

Given that you check to see that the response from the daemon is the expected shutdown message, isn't it possible that the daemon sends something else when the shutdown fails?

@lwander lwander merged commit 3308dff into spinnaker:master Jun 25, 2018
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.

3 participants