birdc configure exits with 0 on error

Vincent Bernat bernat at luffy.cx
Thu Mar 10 19:38:56 CET 2022


Hey!

"birdc configure" (or any command in fact) exits with 0 on error. This
is a bit annoying as when using "systemctl reload bird", we get no
notification there is an error.

Looking at the source code, it seems there is no easy way to hack around
that. Commands do not report an error code and messages printed are not
tagged as errors.

Here is a small workaround for systemd:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Pkg-check-configuration-before-reloading-with-system.patch
Type: text/x-diff
Size: 1428 bytes
Desc: not available
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20220310/838aaca0/attachment.bin>
-------------- next part --------------
-- 
Keep it simple to make it faster.
            - The Elements of Programming Style (Kernighan & Plauger)


More information about the Bird-users mailing list