-
Notifications
You must be signed in to change notification settings - Fork 42
started tackling restart on status #15
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
base: master
Are you sure you want to change the base?
Conversation
} | ||
|
||
public void setRestartOnStatus(Integer status) { | ||
if(status < 5 && status > 255) throw new NumberFormatException("Restart-Status needs to be between 5 and 255!"); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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) ...
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? |
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...