Skip to content

Commit

Permalink
Update notes about the journald bug
Browse files Browse the repository at this point in the history
The bug has been fixed for about 2 years, let's be clear about it's state.
  • Loading branch information
Hunts Chen committed Mar 30, 2022
1 parent 7fb144b commit 2e65d79
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.md
Expand Up @@ -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
Expand All @@ -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.

0 comments on commit 2e65d79

Please sign in to comment.