Updated the patch for keeping state in the file. Moved the read/write functions to sysdep/unix/main.c and made better parsing. So it is not a draft anymore, but something more or less "stable". I can add documentation patch in case there is interest to include that into upstream.

On Tue, Jan 24, 2023 at 8:03 AM Ondrej Zajicek <santiago@crfreenet.org> wrote:
On Mon, Jan 23, 2023 at 03:19:43AM +0100, Alexander Zubkov wrote:
> Hello,
>
> Not sure if those are forgotten or are unwanted modifications. Please let
> me know.
>
> And I also have another idea regarding the subject. The idea is to
> configure the file where bird will keep the states of the protocols (I mean
> enabled/disabled states). Then during loading the configuration it alters
> the states to reflect the saved ones. So the states are persistent during
> reconfiguration and also during restart of a daemon. The draft patch is
> attached. Please take a look.

Hello

Forgot about it, will check it.

--
Elen sila lumenn' omentielvo

Ondrej 'Santiago' Zajicek (email: santiago@crfreenet.org)
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."