]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3074] Add logging
authorMukund Sivaraman <muks@isc.org>
Wed, 9 Oct 2013 06:06:10 +0000 (11:36 +0530)
committerMukund Sivaraman <muks@isc.org>
Wed, 9 Oct 2013 06:06:10 +0000 (11:36 +0530)
src/bin/bind10/init.py.in
src/bin/bind10/init_messages.mes

index c16fca6548af02c54af0e9d1aecc2053f5e1f503..608d43d2b438b409ce8a6f48a6e2d027d6df4610 100755 (executable)
@@ -765,9 +765,14 @@ class Init:
         it might want to choose if it is for this one).
         """
         logger.info(BIND10_STOP_PROCESS, process)
-        self.cc_session.group_sendmsg(isc.config.ccsession.
-                                      create_command('shutdown', {'pid': pid}),
-                                      recipient, recipient)
+        try:
+            self.cc_session.group_sendmsg(isc.config.ccsession.
+                                          create_command('shutdown',
+                                                         {'pid': pid}),
+                                          recipient, recipient)
+        except:
+            logger.error(BIND10_COMPONENT_SHUTDOWN_ERROR, process)
+            raise
 
     def component_shutdown(self, exitcode=0):
         """
index 0719f6f261471ea858650196a7c26b65ea502191..21cd142dd8f10c1183e344bc9e4ced9d88d60311 100644 (file)
@@ -329,3 +329,6 @@ ten seconds.
 % BIND10_RECONFIGURE_ERROR Error applying new config: %1
 A new configuration was received, but there was an error doing the
 re-configuration.
+
+% BIND10_COMPONENT_SHUTDOWN_ERROR An error occured stopping component %1
+An attempt to gracefully shutdown a component failed.