From b3a0d54308fba327fb463cc1a3c11d3607deea53 Mon Sep 17 00:00:00 2001 From: Hunts Chen Date: Wed, 30 Mar 2022 10:12:35 -0700 Subject: [PATCH] Update notes about the journald bug (#70) The bug has been fixed for about 2 years, let's be clear about it's state. --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ae7abff..4c1433f 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ Please see the more elaborate [graceful shutdown with net/http](http_example_tes ## Integration with `systemd` -``` +```text [Unit] Description=Service using tableflip @@ -61,4 +61,9 @@ PIDFile=/path/to/pid-file See the [documentation](https://godoc.org/github.com/cloudflare/tableflip) as well. -The logs of a process using `tableflip` may go missing due to a [bug in journald](https://github.com/systemd/systemd/issues/13708). You can work around this by logging directly to journald, for example by using [go-systemd/journal](https://godoc.org/github.com/coreos/go-systemd/journal) and looking for the [$JOURNAL_STREAM](https://www.freedesktop.org/software/systemd/man/systemd.exec.html#$JOURNAL_STREAM) environment variable. +The logs of a process using `tableflip` may go missing due to a [bug in journald](https://github.com/systemd/systemd/issues/13708), +which has been fixed by systemd v244 release. If you are running an older version +of systemd, you can work around this by logging directly to journald, for example +by using [go-systemd/journal](https://godoc.org/github.com/coreos/go-systemd/journal) +and looking for the [$JOURNAL_STREAM](https://www.freedesktop.org/software/systemd/man/systemd.exec.html#$JOURNAL_STREAM) +environment variable.