From a2da847353f3fd79feb1a4b902faebd74b31fa64 Mon Sep 17 00:00:00 2001 From: Mukund Sivaraman Date: Wed, 11 Apr 2012 15:51:06 +0530 Subject: [PATCH] [1818] Log components startup properly --- src/bin/xfrin/xfrin.py.in | 1 + src/bin/xfrin/xfrin_messages.mes | 5 +++-- src/bin/xfrout/xfrout.py.in | 1 + src/bin/xfrout/xfrout_messages.mes | 4 ++++ src/bin/zonemgr/zonemgr.py.in | 1 + src/bin/zonemgr/zonemgr_messages.mes | 4 ++++ 6 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/bin/xfrin/xfrin.py.in b/src/bin/xfrin/xfrin.py.in index a60ad7f707..fb7439ba1a 100755 --- a/src/bin/xfrin/xfrin.py.in +++ b/src/bin/xfrin/xfrin.py.in @@ -1576,6 +1576,7 @@ class Xfrin: logger.error(XFRIN_MSGQ_SEND_ERROR_ZONE_MANAGER, ZONE_MANAGER_MODULE_NAME) def startup(self): + logger.info(XFRIN_STARTED) while not self._shutdown_event.is_set(): self._cc_check_command() diff --git a/src/bin/xfrin/xfrin_messages.mes b/src/bin/xfrin/xfrin_messages.mes index eae1c698c4..25a1fc1c06 100644 --- a/src/bin/xfrin/xfrin_messages.mes +++ b/src/bin/xfrin/xfrin_messages.mes @@ -129,8 +129,9 @@ zone is not known to the system. This may indicate that the configuration for xfrin is incomplete, or there was a typographical error in the zone name in the configuration. -% XFRIN_STARTING starting resolver with command line '%1' -An informational message, this is output when the resolver starts up. +% XFRIN_STARTED xfrin started +This informational message is output by xfrin when all initialization +has been completed and it is entering its main loop. % XFRIN_STOPPED_BY_KEYBOARD keyboard interrupt, shutting down There was a keyboard interrupt signal to stop the xfrin daemon. The diff --git a/src/bin/xfrout/xfrout.py.in b/src/bin/xfrout/xfrout.py.in index 8f236ecf68..3379886455 100755 --- a/src/bin/xfrout/xfrout.py.in +++ b/src/bin/xfrout/xfrout.py.in @@ -1002,6 +1002,7 @@ class XfroutServer: def run(self): '''Get and process all commands sent from cfgmgr or other modules. ''' + logger.info(XFROUT_STARTED) while not self._shutdown_event.is_set(): self._cc.check_command(False) diff --git a/src/bin/xfrout/xfrout_messages.mes b/src/bin/xfrout/xfrout_messages.mes index fcc2e5954d..9996a5ad70 100644 --- a/src/bin/xfrout/xfrout_messages.mes +++ b/src/bin/xfrout/xfrout_messages.mes @@ -133,6 +133,10 @@ be a result of rare local error such as memory allocation failure and shouldn't happen under normal conditions. The error is included in the log message. +% XFROUT_STARTED xfrout started +This informational message is output by xfrout when all initialization +has been completed and it is entering its main loop. + % XFROUT_STOPPED_BY_KEYBOARD keyboard interrupt, shutting down There was a keyboard interrupt signal to stop the xfrout daemon. The daemon will now shut down. diff --git a/src/bin/zonemgr/zonemgr.py.in b/src/bin/zonemgr/zonemgr.py.in index 7b16f1bf2a..bbb0e62372 100755 --- a/src/bin/zonemgr/zonemgr.py.in +++ b/src/bin/zonemgr/zonemgr.py.in @@ -657,6 +657,7 @@ class Zonemgr: return answer def run(self): + logger.info(ZONEMGR_STARTED) self.running = True try: while not self._shutdown_event.is_set(): diff --git a/src/bin/zonemgr/zonemgr_messages.mes b/src/bin/zonemgr/zonemgr_messages.mes index d33e263d5e..c866b792fd 100644 --- a/src/bin/zonemgr/zonemgr_messages.mes +++ b/src/bin/zonemgr/zonemgr_messages.mes @@ -67,6 +67,10 @@ zone manager to record the master server for the zone and start a timer; when the timer expires, the master will be polled to see if it contains new data. +% ZONEMGR_STARTED zonemgr started +This informational message is output by zonemgr when all initialization +has been completed and it is entering its main loop. + % ZONEMGR_RECEIVE_SHUTDOWN received SHUTDOWN command This is a debug message indicating that the zone manager has received a SHUTDOWN command over the command channel from the Boss process.