You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.4 KiB
40 lines
1.4 KiB
7 years ago
|
diff -urNp a/man/snmp_config.5.def b/man/snmp_config.5.def
|
||
|
--- a/man/snmp_config.5.def 2017-06-26 11:30:42.728527539 +0200
|
||
|
+++ b/man/snmp_config.5.def 2017-06-26 11:33:19.766436329 +0200
|
||
|
@@ -179,14 +179,28 @@ during normal configuration file process
|
||
|
.RS
|
||
|
.nf
|
||
|
# include site specific config
|
||
|
-include site.conf
|
||
|
+includeFile site.conf
|
||
|
.RE
|
||
|
.PP
|
||
|
-This will search every directory in the configuration path for files
|
||
|
-named site.conf, and will process those files before returning to the
|
||
|
-processing of the original file. Note that if '.conf' is omitted,
|
||
|
-it will be appended. That is, all configuration files must end
|
||
|
-in '.conf'.
|
||
|
+This will load the specified configuration file. The
|
||
|
+path to file must be either absolute, starting with '/',
|
||
|
+or relative. The relative path is then relative to the directory
|
||
|
+where the parent file with 'includeFile' directive resides.
|
||
|
+.PP
|
||
|
+The included file name does not need to have '.conf' suffix.
|
||
|
+.PP
|
||
|
+.RS
|
||
|
+.nf
|
||
|
+# include a all *.conf files in a directory
|
||
|
+includeDir /etc/snmp/config.d
|
||
|
+.RE
|
||
|
+.PP
|
||
|
+This will search specified directory for all files with '.conf'
|
||
|
+suffix and process them as if they were included using includeFile
|
||
|
+directive. The configuration files are not processed in any particular
|
||
|
+order.
|
||
|
+.PP
|
||
|
+The specified directory must be absolute directory path.
|
||
|
.SH "API INTERFACE"
|
||
|
.PP
|
||
|
Information about writing C code that makes use of this system in
|
||
|
|