FORWARD-JOURNALD(8)

NAME
forward-journald - forward stdin to journald

SYNOPSIS
forward-journald [OPTION]...

DESCRIPTION
Forward lines received from stdin to journald

OPTIONS

-1  Use the priority of informational when writing to journald (default)

-2  Use the priority of error when writing to journald

-tag=TAG
    Add field OBJECT_EXE to journald entry using TAG

EXIT STATUS

0   No errors occurred

1   Unable to connect to journald.

NOTES
Workaround for SIGPIPE issue with < go 1.6rc2, where writing 10 times to stdout or stderr will cause the SIGPIPE events to be converted to a non-trappable SIGPIPE killing any process written in go(1).

BUGS
Docker command crashes after journald is stopped (https://bugzilla.redhat.com/show_bug.cgi?id=1300076)

EXAMPLE
Update docker.service to guard docker(1) from the SIGPIPE issue:

  docker.service
:
[Service]
Type=notify
NotifyAccess=all
ExecStart=/bin/sh -c '/usr/bin/docker daemon \
          $OPTIONS \
          $DOCKER_STORAGE_OPTIONS \
          $DOCKER_NETWORK_OPTIONS \
          $INSECURE_REGISTRY \
          2>&1 | /usr/bin/forward-journald -tag docker'
StandardOutput=null
StandardError=null
:

SEE ALSO
go(1), docker(1), systemd(1), journald(1) systemd-journald(8),