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

Add program option to validate config and exit #247

Closed
iain-buclaw-sociomantic opened this issue Jan 24, 2017 · 2 comments
Closed

Add program option to validate config and exit #247

iain-buclaw-sociomantic opened this issue Jan 24, 2017 · 2 comments

Comments

@iain-buclaw-sociomantic
Copy link
Contributor

Currently can get the desired behaviour by running:

echo -n | ./relay -t -f routes.conf

But it would be more handy for the relay to have an option to exit success/failure immediately after parsing the config.

@grobian
Copy link
Owner

grobian commented Jan 24, 2017

I actually always thought -t < /dev/null was supposed to be for this purpose. IIRC some init scripts even use it before reload to chkconfig().

@grobian
Copy link
Owner

grobian commented Jan 30, 2017

I think I got an idea, -tt might be easily possible to suppress any output but errors as well.

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

No branches or pull requests

2 participants