[systemd-devel] APIs for JournalD commands

Lennart Poettering lennart at poettering.net
Thu May 6 11:51:22 UTC 2021


On Do, 06.05.21 09:00, Andreas Krueger (Andreas.Krueger at fmc-ag.com) wrote:

> Hi Folks,
>
> I have to write some tests to ensure the functionality of JournalD,
> which is used by a project I'm working on. For this I've found the
> APIs defined in header file <systemd/sd-journal.h> that can be used
> for many of my issues, but there is a gap between what this header
> file offers and what can be done by command 'journalctl'. For
> example, for verifying the sealing I haven't found any corresponding
> API in the header file. As well as for rotating.
>
> So, is there somewhere a header file with the missing APIs? Or can
> verification (or rotation) be done only by command 'journalctl'?

Rotation can be triggered via a varlink API or via a UNIX process
signal. The varlink API is not officially documented, i.e. we don't
commit to API stability for it yet. The signal is documented on the
journald man page.

Verification is only available in journalctl.

Lennart

--
Lennart Poettering, Berlin


More information about the systemd-devel mailing list