]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
docs: Correct StandartOutput documentation
authorMax Gautier <mg@max.gautier.name>
Sat, 30 Jul 2022 06:46:27 +0000 (08:46 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Sat, 30 Jul 2022 12:48:36 +0000 (13:48 +0100)
fix #2114

man/systemd.exec.xml

index 3e61e0fc5efb2765f323aa96352fbe706fe66ef5..f90a1e25d0d9d607d9a39af52ff205fb3bdb27a8 100644 (file)
@@ -2792,7 +2792,11 @@ SystemCallErrorNumber=EPERM</programlisting>
         writing text to stderr will not work. To mitigate this use the construct <command>echo "hello"
         >&amp;2</command> instead, which is mostly equivalent and avoids this pitfall.</para>
 
-        <para>This setting defaults to the value set with <varname>DefaultStandardOutput=</varname> in
+        <para>If <varname>StandardInput=</varname> is set to one of <option>tty</option>, <option>tty-force</option>,
+        <option>tty-fail</option>, <option>socket</option>, or <option>fd:<replaceable>name</replaceable></option>, this
+        setting defaults to <option>inherit</option>.</para>
+
+        <para>In other cases, this setting defaults to the value set with <varname>DefaultStandardOutput=</varname> in
         <citerefentry><refentrytitle>systemd-system.conf</refentrytitle><manvolnum>5</manvolnum></citerefentry>, which
         defaults to <option>journal</option>. Note that setting this parameter might result in additional dependencies
         to be added to the unit (see above).</para></listitem>