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

Fix config verification and reload error handling #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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.

None yet

1 participant