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

httpok: try to restart even in FATAL process state #120

Open
eoghanmurray opened this issue Mar 29, 2019 · 1 comment
Open

httpok: try to restart even in FATAL process state #120

eoghanmurray opened this issue Mar 29, 2019 · 1 comment

Comments

@eoghanmurray
Copy link

I'm wondering why httpok doesn't include an option to always try to restart even if the process is not in ProcessStates.RUNNING?
That would be my feature request for an option to add that (or to do it by default).
Do people use a different tool for that job?

My scenario is that a temporary configuration error meant that a key process couldn't start (startretries was 3, but as the config was incorrect for around a half hour — so I'd have had have set that quite high to cover the half hour)

As I've an hourly httpok running, my assumption was that this would have attempted to restart the process each hour, and (say) 10 hours later the system could be back working without intervention.

I want to see if I'm missing some approach before submitting a PR.

@eoghanmurray
Copy link
Author

So I guess I'm looking for an option -x --start-if-not-running "Attempt to start if not in RUNNING state"

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

No branches or pull requests

1 participant