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

started tackling restart on status #15

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

andretietz
Copy link

@andretietz andretietz commented Nov 2, 2020

This is a PR for fullfilling the feature request of restarting on a specific exit code from the jvm.
I couldn't build it myself, but I guess you have a CI in place...

}

public void setRestartOnStatus(Integer status) {
if(status < 5 && status > 255) throw new NumberFormatException("Restart-Status needs to be between 5 and 255!");
Copy link
Author

Choose a reason for hiding this comment

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

not sure if there isn't a better place to check this. I assumed 5 is out of range of the predefined 0,1,2

Choose a reason for hiding this comment

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

Should it not be or instead of and, i.e.

if(status < 5 || status > 255) ...

@ianrenton
Copy link

This would be really handy for me. Is there a route to getting this PR merged - is additional work needed etc.? Or is this project no longer being maintained?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants