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

allow validating of config json before starting consul agent #334

Closed
mtougeron opened this issue Sep 10, 2014 · 2 comments
Closed

allow validating of config json before starting consul agent #334

mtougeron opened this issue Sep 10, 2014 · 2 comments
Labels
type/enhancement Proposed improvement or new feature

Comments

@mtougeron
Copy link

If you have invalid json in your configuration consul agent still succeeds but then later crashes. It would be nice to have an option to not start/reload unless the json is well-formed/valid.

We are running v0.3.1

@armon
Copy link
Member

armon commented Sep 10, 2014

Do you have sample log output? Or the same configuration? That is odd, since the config parsing / validation is before the agent starts.

@armon armon added the type/enhancement Proposed improvement or new feature label Oct 14, 2014
@ryanuber
Copy link
Member

#576 added more strict config checking. The JSON syntax is also checked in the parser.

duckhan pushed a commit to duckhan/consul that referenced this issue Oct 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement Proposed improvement or new feature
Projects
None yet
Development

No branches or pull requests

3 participants