From 9b9509d890850d3cf2cbceacdffebb6c1df7203d Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Wed, 28 Mar 2001 04:18:18 +0000 Subject: [PATCH] Fixed description of use/interaction of "size" and "versions" options on log channels. --- doc/arm/Bv9ARM-book.xml | 41 +++++++++++++++++++++++++---------------- 1 file changed, 25 insertions(+), 16 deletions(-) diff --git a/doc/arm/Bv9ARM-book.xml b/doc/arm/Bv9ARM-book.xml index 71813b140a..3c42d1fe51 100644 --- a/doc/arm/Bv9ARM-book.xml +++ b/doc/arm/Bv9ARM-book.xml @@ -2,7 +2,7 @@ - + BIND 9 Administrator Reference Manual @@ -2265,21 +2265,30 @@ to a disk file. It can include limitations both on how large the file is allowed to become, and how many versions of the file will be saved each time the file is opened. -The size option for files is simply a hard -ceiling on log growth. If the file ever exceeds the size, then named will -not write anything more to it until the file is reopened; exceeding -the size does not automatically trigger a reopen. The default behavior -is not to limit the size of the file. -If you use the versions log file option, -then named will retain that many backup versions -of the file by renaming them when opening. For example, if you choose -to keep 3 old versions of the file lamers.log then -just before it is opened lamers.log.1 is renamed -to lamers.log.2, lamers.log.0 is -renamed to lamers.log.1, and lamers.log is -renamed to lamers.log.0. No rolled versions -are kept by default; any existing log file is simply appended. The unlimited keyword -is synonymous with 99 in current BIND releases. +If you use the versions log file option, then +named will retain that many backup versions of the file by +renaming them when opening. For example, if you choose to keep 3 old versions +of the file lamers.log then just before it is opened +lamers.log.1 is renamed to +lamers.log.2, lamers.log.0 is renamed +to lamers.log.1, and lamers.log is +renamed to lamers.log.0. If a size +option is associated with the log file, then renaming is only done when the +file being opened exceeds the indicated size. No backup versions are kept by +default; any existing log file is simply appended. The +unlimited keyword is synonymous with 99 +in current BIND releases. + +The size option for files is used to limit log +growth. If the file ever exceeds the size, then named will +stop writing to the file unless it has a versions option +associated with it. If backup versions are kept, the files are rolled as +described above and a new one begun. If there is no +versions option, no more data will be written to the log +until some out-of-band mechanism removes or truncates the log to less than the +maximum size. The default behavior is not to limit the size of the +file. + Example usage of the size and versions options: