]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#757] added documentation for optional DDNS "shutdown" command parameter "type"
authorRazvan Becheriu <razvan@isc.org>
Wed, 19 Aug 2020 09:35:46 +0000 (12:35 +0300)
committerRazvan Becheriu <razvan@isc.org>
Thu, 20 Aug 2020 16:12:13 +0000 (16:12 +0000)
doc/sphinx/arm/ctrl-channel.rst
doc/sphinx/arm/ddns.rst

index 5a0faaf3857224e0d5b1359267117fa201295a6c..d4ef0d0cd64860728b348e6f8b3ccbe2a3378527 100644 (file)
@@ -520,6 +520,29 @@ been initiated.  The optional parameter, "exit-value", specifies the
 numeric value with which the server process will exit to the system.
 The default value is zero.
 
+The DDNS deamon supports an extra parameter "type" which controls
+the way the DDNS process cleans up on exit. The supported shutdown types are:
+
+ -  "normal" - Stops the queue manager and finishes all current transactions
+    before exiting. This is the default.
+
+ -  "drain_first" - Stops the queue manager but continues processing requests
+    from the queue until it is empty.
+
+ -  "now" - Exits immediately.
+
+An example command may look like this:
+
+::
+
+   {
+       "command": "shutdown"
+       "arguments": {
+           "exit-value": 3,
+           "type": "drain_first"
+       }
+   }
+
 .. _command-dhcp-disable:
 
 The dhcp-disable Command
index e63badf53dc79ba36796638d2aecf783c920235f..36c93dcf60e6a577634e6e83401f1b3066f79649 100644 (file)
@@ -298,6 +298,30 @@ The D2 server supports the following operational commands:
 -  status-get
 -  version-get
 
+The ``shutdown`` command supports extra ``type`` argument which controls the
+way the D2 server cleans up on exit.
+The supported shutdown types are:
+
+-  ``normal`` - Stops the queue manager and finishes all current transactions
+   before exiting. This is the default.
+
+-  ``drain_first`` - Stops the queue manager but continues processing requests
+   from the queue until it is empty.
+
+-  ``now`` - Exits immediately.
+
+An example command may look like this:
+
+::
+
+   {
+       "command": "shutdown"
+       "arguments": {
+           "exit-value": 3,
+           "type": "drain_first"
+       }
+   }
+
 .. _d2-tsig-key-list-config:
 
 TSIG Key List