Skip to content

Conversation

xdissent
Copy link

Currently all this.verify() calls only check the error response, which is always undefined. This PR adds a verified argument to those calls which indicates whether the config is valid. The verification status is determined by checking only the error status of the haproxy -c command (ignoring stderr errors), since it exits with 1 if the config is invalid.

This PR also ignores stderr errors in reload(), since there may be warnings and the process will exit with 1 if it fails to start correctly.

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.

1 participant