diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-04-18 03:08:55 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-04-18 04:30:49 +0900 |
commit | cc9b6bdc96e157e6ee9e4dc1d0a304a9df601564 (patch) | |
tree | 02071b5fbd02a1a959e1fefbea7afe53ca88c243 /man/systemd.netdev.xml | |
parent | bf93f24ad8743e1dae7d8629946df7325af2bef7 (diff) | |
download | systemd-cc9b6bdc96e157e6ee9e4dc1d0a304a9df601564.tar.gz |
man: recommend that .network or friends should have a numeric prefix
Closes #23105.
Diffstat (limited to 'man/systemd.netdev.xml')
-rw-r--r-- | man/systemd.netdev.xml | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/man/systemd.netdev.xml b/man/systemd.netdev.xml index ace1dc6336..3a776b3f42 100644 --- a/man/systemd.netdev.xml +++ b/man/systemd.netdev.xml @@ -39,17 +39,22 @@ than create its own. Note that the settings of the pre-existing netdev will not be changed by networkd.</para> - <para>The <filename>.netdev</filename> files are read from the files located in the system - network directory <filename>/usr/lib/systemd/network</filename>, the volatile runtime network - directory <filename>/run/systemd/network</filename> and the local administration network - directory <filename>/etc/systemd/network</filename>. All configuration files are collectively - sorted and processed in lexical order, regardless of the directories in which they live. - However, files with identical filenames replace each other. Files in <filename>/etc/</filename> - have the highest priority, files in <filename>/run/</filename> take precedence over files with - the same name in <filename>/usr/lib/</filename>. This can be used to override a system-supplied - configuration file with a local file if needed. As a special case, an empty file (file size 0) - or symlink with the same name pointing to <filename>/dev/null</filename> disables the - configuration file entirely (it is "masked").</para> + <para>The <filename>.netdev</filename> files are read from the files located in the system network + directory <filename>/usr/lib/systemd/network</filename> and + <filename>/usr/local/lib/systemd/network</filename>, the volatile runtime network directory + <filename>/run/systemd/network</filename> and the local administration network directory + <filename>/etc/systemd/network</filename>. All configuration files are collectively sorted and + processed in alphanumeric order, regardless of the directories in which they live. However, files + with identical filenames replace each other. It is recommended that each filename is prefixed with + a number (e.g. <filename>10-vlan.netdev</filename>). Otherwise, <filename>.netdev</filename> files + generated by + <citerefentry><refentrytitle>systemd-network-generator.service</refentrytitle><manvolnum>8</manvolnum></citerefentry> + may take precedence over user configured files. Files in <filename>/etc/</filename> have the + highest priority, files in <filename>/run/</filename> take precedence over files with the same name + in <filename>/usr/lib/</filename>. This can be used to override a system-supplied configuration + file with a local file if needed. As a special case, an empty file (file size 0) or symlink with + the same name pointing to <filename>/dev/null</filename> disables the configuration file entirely + (it is "masked").</para> <para>Along with the netdev file <filename>foo.netdev</filename>, a "drop-in" directory <filename>foo.netdev.d/</filename> may exist. All files with the suffix <literal>.conf</literal> @@ -2433,7 +2438,8 @@ Independent=yes</programlisting> <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>, <citerefentry><refentrytitle>systemd-networkd</refentrytitle><manvolnum>8</manvolnum></citerefentry>, <citerefentry><refentrytitle>systemd.link</refentrytitle><manvolnum>5</manvolnum></citerefentry>, - <citerefentry><refentrytitle>systemd.network</refentrytitle><manvolnum>5</manvolnum></citerefentry> + <citerefentry><refentrytitle>systemd.network</refentrytitle><manvolnum>5</manvolnum></citerefentry>, + <citerefentry><refentrytitle>systemd-network-generator.service</refentrytitle><manvolnum>8</manvolnum></citerefentry> </para> </refsect1> |