]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
man: describe precedence of drop-in .conf files over unit files 2409/head
authorChris Atkinson <christopher.william.atkinson@gmail.com>
Fri, 18 Dec 2015 03:41:59 +0000 (22:41 -0500)
committerChris Atkinson <christopher.william.atkinson@gmail.com>
Thu, 21 Jan 2016 22:21:46 +0000 (17:21 -0500)
man/systemd.unit.xml

index 5b12378eda67b2891c33493acb7ddbce7feb3013..9b7013e0ce4145407e953a4a214e64bf5db12a54 100644 (file)
     <literal>.d/</literal> subdirectory and reads its
     <literal>.conf</literal> files.</para>
 
+    <para>In addition to <filename>/etc/systemd/system</filename>,
+    the drop-in <literal>.conf</literal> files for system services
+    can be placed in <filename>/usr/lib/systemd/system</filename> or
+    <filename>/run/systemd/system</filename> directories. Drop-in
+    files in <filename>/etc</filename> take precedence over those in
+    <filename>/run</filename> which in turn take precedence over
+    those in <filename>/usr/lib</filename>. Drop-in files under any of
+    these directories take precedence over unit files wherever located.
+    (Of course, since <filename>/run</filename> is temporary and
+    <filename>/usr/lib</filename> is for vendors, it is unlikely
+    drop-ins should be used in either of those places.)</para>
     <!-- Note that we do not document .include here, as we
          consider it mostly obsolete, and want people to
          use .d/ drop-ins instead. -->
@@ -1402,6 +1413,7 @@ PrivateTmp=yes</programlisting>
       cannot be reset to an empty list, so dependencies can only be
       added in drop-ins. If you want to remove dependencies, you have
       to override the entire unit.</para>
+
     </example>
   </refsect1>