конфигурация для создания, удаления и очистки летучих и временных файлов (Configuration for creation, deletion and cleaning of volatile and temporary files)
Конфигурационные каталоги и предшественники (Configuration directories and precedence)
Each configuration file shall be named in the style of
package.conf or package-part.conf. The second variant should be
used when it is desirable to make it easy to override just this
part of configuration.
Files in /etc/tmpfiles.d override files with the same name in
/usr/lib/tmpfiles.d and /run/tmpfiles.d. Files in /run/tmpfiles.d
override files with the same name in /usr/lib/tmpfiles.d.
Packages should install their configuration files in
/usr/lib/tmpfiles.d. Files in /etc/tmpfiles.d are reserved for
the local administrator, who may use this logic to override the
configuration files installed by vendor packages. All
configuration files are sorted by their filename in lexicographic
order, regardless of which of the directories they reside in. If
multiple files specify the same path, the entry in the file with
the lexicographically earliest name will be applied (note that
lines suppressed due to the "!" are filtered before application,
meaning that if an early line carries the exclamation mark and is
suppressed because of that, a later line matching in path will be
applied). All other conflicting entries will be logged as errors.
When two lines are prefix path and suffix path of each other,
then the prefix line is always created first, the suffix later
(and if removal applies to the line, the order is reversed: the
suffix is removed first, the prefix later). Lines that take globs
are applied after those accepting no globs. If multiple
operations shall be applied on the same file (such as ACL, xattr,
file attribute adjustments), these are always done in the same
fixed order. Except for those cases, the files/directories are
processed in the order they are listed.
If the administrator wants to disable a configuration file
supplied by the vendor, the recommended way is to place a symlink
to /dev/null in /etc/tmpfiles.d/ bearing the same filename.