]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1596] Update spec files for everybody
authorMichal 'vorner' Vaner <michal.vaner@nic.cz>
Tue, 14 Feb 2012 10:05:52 +0000 (11:05 +0100)
committerMichal 'vorner' Vaner <michal.vaner@nic.cz>
Tue, 14 Feb 2012 10:05:52 +0000 (11:05 +0100)
Or, everybody who accepts a shutdown command with pid now. Stats needed
to be updated because it did call functions based on the name and spec
file somehow.

src/bin/ddns/ddns.spec
src/bin/stats/stats-httpd.spec
src/bin/stats/stats.py.in
src/bin/stats/stats.spec
src/bin/xfrin/xfrin.spec
src/bin/xfrout/xfrout.spec.pre.in
src/bin/zonemgr/zonemgr.spec.pre.in

index 07cd2a99f929bae123e01b24c3ba304bca22fac7..55dab5c1cf048216260f52e80673792e3aaf1eb6 100644 (file)
       {
         "command_name": "shutdown",
         "command_description": "Shut down DDNS",
-        "command_args": []
+        "command_args": [
+          {
+            "item_name": "pid",
+            "item_type": "integer",
+            "item_optional": true
+          }
+        ]
       }
     ]
   }
index 6307135cc86660eb8cbc41e06a08dbae32e7afbf..783611d33edd83e53c6913af9219622988de5311 100644 (file)
       {
         "command_name": "shutdown",
         "command_description": "Shut down the stats httpd",
-        "command_args": []
+        "command_args": [
+          {
+            "item_name": "pid",
+            "item_type": "integer",
+            "item_optional": true
+          }
+        ]
       }
     ]
   }
index 537cf49e8e86f8e376668d441eb0da760469a696..938a06298264bbd2f71d298d56c12b529ca4ad52 100755 (executable)
@@ -304,9 +304,11 @@ class Stats:
         return isc.config.create_answer(
             0, "Stats is up. (PID " + str(os.getpid()) + ")")
 
-    def command_shutdown(self):
+    def command_shutdown(self, pid=None):
         """
         handle shutdown command
+
+        The pid argument is ignored, it is here to match the signature.
         """
         logger.info(STATS_RECEIVED_SHUTDOWN_COMMAND)
         self.running = False
index e716b62279363cfe3088aae3f2bdf3b5c555479c..d3bdcca54eb0663a96f7c051215001b0fe9ad07a 100644 (file)
       {
         "command_name": "shutdown",
         "command_description": "Shut down the stats module",
-        "command_args": []
+        "command_args": [
+          {
+            "item_name": "pid",
+            "item_type": "integer",
+            "item_optional": true
+          }
+        ]
       },
       {
         "command_name": "show",
index c1ba61e41b6bccfd2c7595a94155ad7231ab9415..7ab1085ccc01e7a03b1aae48f67bf8e06e1c6215 100644 (file)
       {
         "command_name": "shutdown",
         "command_description": "Shut down xfrin module",
-        "command_args": []
+        "command_args": [
+          {
+            "item_name": "pid",
+            "item_type": "integer",
+            "item_optional": true
+          }
+        ]
       }
     ]
   }
index 0891a579c827a907559174d8752868b2aa9c9943..6a97dea7c0ffd2dbee1c55785c95c78355b9ee58 100644 (file)
         {
           "command_name": "shutdown",
           "command_description": "Shut down Xfrout",
-          "command_args": []
+          "command_args": [
+          {
+            "item_name": "pid",
+            "item_type": "integer",
+            "item_optional": true
+          }
+        ]
         }
       ]
   }
index 36f02df95cbec1a4df65995ae54ec9af1b949b31..defa2037668e933ca4eeef50345b5fbb1bced23a 100644 (file)
         {
           "command_name": "shutdown",
           "command_description": "Shut down Zonemgr",
-          "command_args": []
+          "command_args": [
+          {
+            "item_name": "pid",
+            "item_type": "integer",
+            "item_optional": true
+          }
+        ]
         }
       ]
   }