diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2022-01-16 16:15:41 +0100 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2022-01-17 00:39:00 +0100 |
| commit | 29bb23de3168f77244e4159eb0870a3814efa27c (patch) | |
| tree | b9d981fecf0bd2e51995cadda408556035f912ec /lib/systemd.h | |
| parent | 1c6261a99e9a1447422869a116f704097a19854a (diff) | |
lib: autodetect systemd/journald log on stdout
systemd sets up environment variables to allow autodetecting and
switching the log format to journald native. Make use of that for the
stdout logging target.
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/systemd.h')
| -rw-r--r-- | lib/systemd.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/systemd.h b/lib/systemd.h index 1933f4f688..b9290930d7 100644 --- a/lib/systemd.h +++ b/lib/systemd.h @@ -23,6 +23,10 @@ extern "C" { #endif +/* fd 1/2 connected to journald? */ +extern bool sd_stdout_is_journal; +extern bool sd_stderr_is_journal; + /* * Wrapper functions to systemd calls. * |
