[Opendnssec-commits] [keihatsu.kirei.se/svn/dnssec] r1524 - trunk/signer/signer_engine

Jelte Jansen jelte at nlnetlabs.nl
Thu Aug 6 15:23:36 CEST 2009


Author: jelte
Date: 2009-08-06 15:23:35 +0200 (Thu, 06 Aug 2009)
New Revision: 1524

Modified:
   trunk/signer/signer_engine/Engine.py
   trunk/signer/signer_engine/signer_engine_cli.in
Log:
add restart command to command channel/signer_engine_cli


Modified: trunk/signer/signer_engine/Engine.py
===================================================================
--- trunk/signer/signer_engine/Engine.py	2009-08-06 13:18:20 UTC (rev 1523)
+++ trunk/signer/signer_engine/Engine.py	2009-08-06 13:23:35 UTC (rev 1524)
@@ -276,6 +276,7 @@
                  "update <zone>   check for changed zone conf xml file, if",
                  "                <zone> is not given all zones are checked",
                  "stop            stop the engine",
+                 "restart         restart the engine",
                  "verbosity <nr>  set verbosity (notimpl)"]
                 response = "\n".join(lst)
             if command[:5] == "zones":
@@ -363,6 +364,9 @@
             if command[:4] == "stop":
                 self.stop_engine()
                 response = "Engine stopped"
+            if command[:7] == "restart":
+                signal_handler_stop(1, None)
+                response = "Engine stopped"
                 
         except EngineError, exc:
             response = str(exc)

Modified: trunk/signer/signer_engine/signer_engine_cli.in
===================================================================
--- trunk/signer/signer_engine/signer_engine_cli.in	2009-08-06 13:18:20 UTC (rev 1523)
+++ trunk/signer/signer_engine/signer_engine_cli.in	2009-08-06 13:23:35 UTC (rev 1524)
@@ -45,6 +45,9 @@
     if msg[:4] == "stop":
         print "Sent stop command to engine"
         sys.exit(0)
+    if msg[:7] == "restart":
+        print "Sent restart command to engine"
+        sys.exit(0)
     msg = ''
     chunk = ''
     prevchunk = ''




More information about the Opendnssec-commits mailing list