]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man: document how get logging to work in a RootDirectory=/RootImage= environment
authorLennart Poettering <lennart@poettering.net>
Wed, 20 Jan 2021 21:27:41 +0000 (22:27 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 20 Jan 2021 21:39:33 +0000 (22:39 +0100)
Fixes: #18051
man/systemd.exec.xml

index 663b15fa601a3f9786ec1c6b1f0be5b0bb0128eb..8f00ef555e0f959e986f1a0a6747e8c21549c629 100644 (file)
         <para>The <varname>MountAPIVFS=</varname> and <varname>PrivateUsers=</varname> settings are particularly useful
         in conjunction with <varname>RootDirectory=</varname>. For details, see below.</para>
 
+        <para>If <varname>RootDirectory=</varname>/<varname>RootImage=</varname> are used together with
+        <varname>NotifyAccess=</varname> the notification socket is automatically mounted from the host into
+        the root environment, to ensure the notification interface can work correctly.</para>
+
+        <para>Note that services using <varname>RootDirectory=</varname>/<varname>RootImage=</varname> will
+        not be able to log via the syslog or journal protocols to the host logging infrastructure, unless the
+        relevant sockets are mounted from the host, specifically:</para>
+
+        <example>
+          <title>Mounting logging sockets into root environment</title>
+
+          <programlisting>BindReadOnlyPaths=/dev/log /run/systemd/journal/socket /run/systemd/journal/stdout</programlisting>
+        </example>
+
         <xi:include href="system-only.xml" xpointer="singular"/></listitem>
       </varlistentry>