Bird-1.6: failed configure check and exit status 0

Piotr Wydrych pwydrych at akamai.com
Mon Jan 22 11:45:12 CET 2018


Sam,

On 22.01.2018 11:39, fatal wrote:
> I can build my playbook around this with grepping for "Configuration OK"
> in the output[1], but it would be nice to habe bird return a non zero
> value if the config check fails.

Use bird -p for that:

# bird -p -c /etc/bird/bird.conf; echo $?
0
# bird -p -c /etc/profile; echo $?
bird: /etc/profile, line 4: syntax error
1

Best,
Piotr
-- 
Piotr 'GhosT' Wydrych ........ Senior Lead Sw. Eng., SDN ........ Akamai
........................................................................
A: Because it messes up the order in which people normally read text. ..
Q: Why is top-posting such a bad thing? ................................


More information about the Bird-users mailing list