|
7 | 7 | Copyright © 2014 Josh Triplett |
8 | 8 | --> |
9 | 9 |
|
10 | | -<refentry> |
| 10 | +<refentry xmlns:xi="http://www.w3.org/2001/XInclude"> |
11 | 11 | <refnamediv> |
12 | 12 | <refname/> |
13 | 13 | <refpurpose/> |
|
32 | 32 | that is ordered later).</para> |
33 | 33 |
|
34 | 34 | <para>Packages should install their configuration files in <filename>/usr/lib/</filename> (distribution |
35 | | - packages) or <filename>/usr/local/lib/</filename> (local installs). Files in <filename>/etc/</filename> |
36 | | - are reserved for the local administrator, who may use this logic to override the configuration files |
37 | | - installed by vendor packages. It is recommended to prefix all filenames with a two-digit number and a |
38 | | - dash, to simplify the ordering of the files. It is recommended to use the range 10-40 for configuration |
39 | | - files in <filename>/usr/</filename> and the range 60-90 for configuration files in |
40 | | - <filename>/etc/</filename> and <filename>/run/</filename>, to make sure that local and transient |
41 | | - configuration files will always take priority over configuration files shipped by the OS vendor.</para> |
| 35 | + packages) or <filename>/usr/local/lib/</filename> (local installs) |
| 36 | + <xi:include xpointer="usr-local-footnote" />. |
| 37 | + Files in <filename>/etc/</filename> are reserved for the local administrator, who may use this logic to |
| 38 | + override the configuration files installed by vendor packages.</para> |
| 39 | + |
| 40 | + <para>It is recommended to prefix all filenames with a two-digit number and a dash to simplify the |
| 41 | + ordering. It is recommended to use the range 10-40 for configuration files in <filename>/usr/</filename> |
| 42 | + and the range 60-90 for configuration files in <filename>/etc/</filename> and <filename>/run/</filename>, |
| 43 | + to make sure that local and transient configuration files will always take priority over configuration |
| 44 | + files shipped by the OS vendor.</para> |
42 | 45 |
|
43 | 46 | <para>If the administrator wants to disable a configuration file supplied by the vendor, the recommended |
44 | 47 | way is to place a symlink to <filename>/dev/null</filename> in the configuration directory in |
|
54 | 57 | listed directories in order of priority, only the first file found is used: |
55 | 58 | <filename>/etc/systemd/</filename>, |
56 | 59 | <filename>/run/systemd/</filename>, |
57 | | - <filename>/usr/local/lib/systemd/</filename>, |
| 60 | + <filename>/usr/local/lib/systemd/</filename> <xi:include xpointer="usr-local-footnote" />, |
58 | 61 | <filename>/usr/lib/systemd/</filename>. |
59 | 62 | The vendor version of the file contains commented out entries showing the defaults as a guide to the |
60 | 63 | administrator. Local overrides can also be created by creating drop-ins, as described below. The main |
|
76 | 79 | who may use this logic to override the configuration files installed by vendor packages. Drop-ins have to |
77 | 80 | be used to override package drop-ins, since the main configuration file has lower precedence. It is |
78 | 81 | recommended to prefix all filenames in those subdirectories with a two-digit number and a dash, to |
79 | | - simplify the ordering of the files. This also defines a concept of drop-in priorities to allow |
80 | | - OS vendors to ship drop-ins within a specific range lower than the range used by users. This should |
81 | | - lower the risk of package drop-ins overriding accidentally drop-ins defined by users. It is recommended |
82 | | - to use the range 10-40 for drop-ins in <filename>/usr/</filename> and the range 60-90 for drop-ins in |
| 82 | + simplify the ordering. This also defines a concept of drop-in priorities to allow OS vendors to ship |
| 83 | + drop-ins within a specific range lower than the range used by users. This should lower the risk of |
| 84 | + package drop-ins overriding accidentally drop-ins defined by users. It is recommended to use the range |
| 85 | + 10-40 for drop-ins in <filename>/usr/</filename> and the range 60-90 for drop-ins in |
83 | 86 | <filename>/etc/</filename> and <filename>/run/</filename>, to make sure that local and transient drop-ins |
84 | 87 | take priority over drop-ins shipped by the OS vendor.</para> |
85 | 88 |
|
86 | 89 | <para>To disable a configuration file supplied by the vendor, the recommended way is to place a symlink |
87 | 90 | to <filename>/dev/null</filename> in the configuration directory in <filename>/etc/</filename>, with the |
88 | 91 | same filename as the vendor configuration file.</para> |
89 | 92 | </refsect1> |
| 93 | + |
| 94 | + <refsect1> |
| 95 | + <title>Extras</title> |
| 96 | + |
| 97 | + <para><filename>/usr/local/lib/systemd</filename> |
| 98 | + <footnote id='usr-local-footnote'> |
| 99 | + <para>💣💥🧨💥💥💣 Please note that those configuration files must be available at all times. If |
| 100 | + <filename>/usr/local/</filename> is a separate partition, it may not be available during early boot, |
| 101 | + and must not be used for configuration.</para> |
| 102 | + </footnote> |
| 103 | + </para> |
| 104 | + </refsect1> |
| 105 | + |
90 | 106 | </refentry> |
0 commit comments