From 6110885c2c4b7c576ac5819af5416ec54200d8e3 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Sun, 10 Jun 2012 18:26:11 +0200 Subject: [PATCH] man: systemd-tmpfiles - document proper config-file-stack order --- man/sysctl.d.xml | 2 +- man/systemd-tmpfiles.xml | 17 ++++++++--------- man/tmpfiles.d.xml | 36 +++++++++++++++++++++--------------- 3 files changed, 30 insertions(+), 25 deletions(-) diff --git a/man/sysctl.d.xml b/man/sysctl.d.xml index a4a495ee3..048d23f4c 100644 --- a/man/sysctl.d.xml +++ b/man/sysctl.d.xml @@ -81,7 +81,7 @@ Files in /etc/ override files with the same name in /usr/lib/ and /run/. Files in - /run override files with the same + /run/ override files with the same name in /usr/lib/. Packages should install their configuration files in /usr/lib/. Files in diff --git a/man/systemd-tmpfiles.xml b/man/systemd-tmpfiles.xml index f58913d0c..4ac7224ab 100644 --- a/man/systemd-tmpfiles.xml +++ b/man/systemd-tmpfiles.xml @@ -59,14 +59,14 @@ systemd-tmpfiles creates, deletes and cleans up volatile and temporary files and - directories, based on the configuration from - /etc/tmpfiles.d/. See - tmpfiles.d5 - for more details on these files. - - If invoked with no arguments applies all - directives from all configuration files in - /etc/tmpfiles.d/*.conf. If one or + directories, based on the configuration file format and + location specified in + tmpfiles.d + 5 + . + + If invoked with no arguments, it applies all + directives from all configuration files. If one or more absolute file names are passed on the command line only the directives in these files are applied. @@ -145,7 +145,6 @@ systemd1, tmpfiles.d5, - tmpwatch8 diff --git a/man/tmpfiles.d.xml b/man/tmpfiles.d.xml index 5d4b2ac6d..8987c4807 100644 --- a/man/tmpfiles.d.xml +++ b/man/tmpfiles.d.xml @@ -66,24 +66,30 @@ Configuration Format - Each configuration file is named in the style of - <program>.conf. Files in - /etc/ override files with the - same name in /usr/lib/. Files in - /run override files with the same - name in /etc/ and - /usr/lib/. Packages should - install their configuration files in - /usr/lib/, files in + Each configuration file shall be named in the + style of <program>.conf. + Files in /etc/ override files + with the same name in /usr/lib/ + and /run/. Files in + /run/ override files with the same + name in /usr/lib/. Packages + should install their configuration files in + /usr/lib/. Files in /etc/ are reserved for the local - administrator, who may choose to override the - configurations installed from packages. The list of + administrator, who may use this logic to override the + configuration files installed by vendor packages. All configuration files are sorted by their filename in alphabetical order, regardless in which of the - directories they reside, to guarantee that a - configuration file takes precedence over another - configuration file with an alphabetically later - name. + directories they reside, to guarantee that a specific + configuration file takes precedence over another file + with an alphabetically later name + + 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 file name. The configuration format is one line per path containing action, path, mode, ownership, age and argument -- 2.30.2