author | Sebastian Harl <sh@tokkee.org> | |
Sat, 24 Nov 2012 09:26:20 +0000 (10:26 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Sat, 24 Nov 2012 09:26:20 +0000 (10:26 +0100) | ||
commit | 76910471b1d2b1d5f43d49286bf1f9a03a060f1c | |
tree | 0ce1f3ac2761995f5d68e0975509868c2a1c4e9a | tree | snapshot |
parent | 16202999622d778521903ca2feef7d55c5b1b5b3 | commit | diff |
config: Added support for specifying include filter patterns.
An optional second argument may now be passed to the "Include" configuration
option. If specified (and if the fnmatch() function was available at build
time), only files matching this pattern will be included. For example, the
following will include all files matching "*.conf" in any subdirectory of
/etc/collectd.d/:
Include "/etc/collectd.d" "*.conf"
This is useful, e.g. for distributions in order to include a possibly empty
directory in the default configuration including all subdirectories but also
making it possible to ship further documents like README files.
An optional second argument may now be passed to the "Include" configuration
option. If specified (and if the fnmatch() function was available at build
time), only files matching this pattern will be included. For example, the
following will include all files matching "*.conf" in any subdirectory of
/etc/collectd.d/:
Include "/etc/collectd.d" "*.conf"
This is useful, e.g. for distributions in order to include a possibly empty
directory in the default configuration including all subdirectories but also
making it possible to ship further documents like README files.
configure.in | diff | blob | history | |
src/collectd.conf.pod | diff | blob | history | |
src/configfile.c | diff | blob | history |