aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-09-15 08:26:38 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-09-15 08:26:38 +0200
commitab2116b140a3a087de53b5635cef811b0a3ffdc4 (patch)
tree70c3fca26d1dd8d4d58ed9a1d6e6331fcf90c7cc /man/systemd.exec.xml
parentcryptsetup: fix unused variable (#6833) (diff)
downloadsystemd-ab2116b140a3a087de53b5635cef811b0a3ffdc4.tar.gz
systemd-ab2116b140a3a087de53b5635cef811b0a3ffdc4.tar.bz2
systemd-ab2116b140a3a087de53b5635cef811b0a3ffdc4.zip
core: make sure that $JOURNAL_STREAM prefers stderr over stdout information (#6824)
If two separate log streams are connected to stdout and stderr, let's make sure $JOURNAL_STREAM points to the latter, as that's the preferred log destination, and the environment variable has been created in order to permit services to automatically upgrade from stderr based logging to native journal logging. Also, document this behaviour. Fixes: #6800
Diffstat (limited to 'man/systemd.exec.xml')
-rw-r--r--man/systemd.exec.xml6
1 files changed, 6 insertions, 0 deletions
diff --git a/man/systemd.exec.xml b/man/systemd.exec.xml
index 7821b69cd..53daff0f6 100644
--- a/man/systemd.exec.xml
+++ b/man/systemd.exec.xml
@@ -2012,6 +2012,12 @@ CapabilityBoundingSet=~CAP_B CAP_C</programlisting>
<varname>$JOURNAL_STREAM</varname> is set at all as services might invoke external processes replacing their
standard output or standard error output, without unsetting the environment variable.</para>
+ <para>If both standard output and standard error of the executed processes are connected to the journal via a
+ stream socket, this environment variable will contain information about the standard error stream, as that's
+ usually the preferred destination for log data. (Note that typically the same stream is used for both standard
+ output and standard error, hence very likely the environment variable contains device and inode information
+ matching both stream file descriptors.)</para>
+
<para>This environment variable is primarily useful to allow services to optionally upgrade their used log
protocol to the native journal protocol (using
<citerefentry><refentrytitle>sd_journal_print</refentrytitle><manvolnum>3</manvolnum></citerefentry> and other