From fb67910d554cbf5d6c7035a72561058e8d92f90c Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Thu, 2 May 2013 22:41:35 +0200 Subject: [PATCH] collectd.conf(5): Fixed documentation for include filter patterns. The syntax has been changed from a positional argument to using an block with additional arguments. --- src/collectd.conf.pod | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod index 8606d3e0..af068604 100644 --- a/src/collectd.conf.pod +++ b/src/collectd.conf.pod @@ -109,7 +109,7 @@ interval, that setting will take precedence. =back -=item B I [I] +=item B I If I points to a file, includes that file. If I points to a directory, recursively includes all files within that directory and its @@ -119,15 +119,29 @@ use statements like the following: Include "/etc/collectd.d/*.conf" +Starting with version 5.3, this may also be a block in which further options +affecting the behavior of B may be specified. The following option is +currently allowed: + + + Filter "*.conf" + + +=over 4 + +=item B I + If the C function is available on your system, a shell-like wildcard I may be specified to filter which files to include. This may be used in combination with recursively including a directory to easily be able to arbitrarily mix configuration files and other documents (e.g. README files). -The following statement is similar to the example above but includes all files +The given example is similar to the first example above but includes all files matching C<*.conf> in any subdirectory of C: Include "/etc/collectd.d" "*.conf" +=back + If more than one files are included by a single B option, the files will be included in lexicographical order (as defined by the C function). Thus, you can e.Eg. use numbered prefixes to specify the -- 2.11.0