From: Pieter Lexis Date: Thu, 11 Jun 2015 14:42:22 +0000 (+0200) Subject: Document that only one lua script can be loaded X-Git-Tag: dnsdist-1.0.0-alpha1~248^2~78^2~15^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f45ae2c41e933c20c6570c70bb0b6630e40abfe7;p=pdns Document that only one lua script can be loaded Closes #2472 --- diff --git a/docs/manpages/rec_control.1.md b/docs/manpages/rec_control.1.md index f0da3de0b..a75ecfe26 100644 --- a/docs/manpages/rec_control.1.md +++ b/docs/manpages/rec_control.1.md @@ -87,7 +87,7 @@ reload-acls : Reloads ACLs. reload-lua-script *FILENAME* -: (Re)loads Lua script *FILENAME*. +: (Re)loads Lua script *FILENAME*. This replaces the script currently loaded. reload-zones : Reload authoritative and forward zones. Retains current configuration diff --git a/docs/markdown/recursor/running.md b/docs/markdown/recursor/running.md index 2631f04e0..aecb85506 100644 --- a/docs/markdown/recursor/running.md +++ b/docs/markdown/recursor/running.md @@ -52,7 +52,8 @@ Request a nice shutdown of the recursor. Reload access control lists. ### `reload-lua-script [filename]` -(Re-)Load Lua script. +(Re-)Load Lua script. Note that loading a script fully replaces the one currently +loaded. ### `reload-zones` Reload data about all authoritative and forward zones. The configuration file is also scanned to see if the **auth-domain**, **forward-domain** and **export-etc-hosts** statements have changed, and if so, these changes are incorporated. diff --git a/docs/markdown/recursor/scripting.md b/docs/markdown/recursor/scripting.md index 045266557..0b1b4e0d2 100644 --- a/docs/markdown/recursor/scripting.md +++ b/docs/markdown/recursor/scripting.md @@ -27,6 +27,9 @@ enabled, other distributions may differ. To compile with Lua support, use: files and binaries may be found near the top of the `Makefile`, or passed to `configure`. +**note**: Only one script can be loaded at the same time. If you load a different +script, the current one will be replaced! + If Lua support is available, a script can be configured either via the configuration file, or at runtime via the `rec_control` tool. Scripts can be reloaded or unloaded at runtime with no interruption in operations. If a