[icinga-checkins] icinga.org: icinga-core/feature/ido-cfgdump-5080: Move programstatus update before prelaunch.

git at icinga.org git at icinga.org
Tue Nov 19 12:38:02 CET 2013


Module: icinga-core
Branch: feature/ido-cfgdump-5080
Commit: 10ed41e9487afa73402ff3f7a9b01380a954558b
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=10ed41e9487afa73402ff3f7a9b01380a954558b

Author: Michael Friedrich <michael.friedrich at netways.de>
Date:   Tue Nov 19 12:37:06 2013 +0100

Move programstatus update before prelaunch.

Refs #5080

---

 base/icinga.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/base/icinga.c b/base/icinga.c
index 71305b6..25e7343 100644
--- a/base/icinga.c
+++ b/base/icinga.c
@@ -718,6 +718,10 @@ int main(int argc, char **argv, char **env) {
                 exit(EXIT_FAILURE);
             }
 
+			/* forcibly send a program status update
+			 * for later updates of PROCESS_* */
+			broker_program_status(NEBTYPE_PROGRAMSTATUS_UPDATE, NEBFLAG_NONE, NEBATTR_NONE, NULL);
+
 			/* send program data to broker */
 			broker_program_state(NEBTYPE_PROCESS_PRELAUNCH, NEBFLAG_NONE, NEBATTR_NONE, NULL);
 #endif
@@ -786,10 +790,6 @@ int main(int argc, char **argv, char **env) {
 
 
 #ifdef USE_EVENT_BROKER
-			/* forcibly send a program status update
-			 * for later updates of PROCESS_* */
-			broker_program_status(NEBTYPE_PROGRAMSTATUS_UPDATE, NEBFLAG_NONE, NEBATTR_NONE, NULL);
-
 			/* send program data to broker */
 			broker_program_state(NEBTYPE_PROCESS_START, NEBFLAG_NONE, NEBATTR_NONE, NULL);
 #endif





More information about the icinga-checkins mailing list