From 7bf55dfdb8dd25390198a0a9078b2ecf3417b9be Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Mon, 18 Jan 2010 22:09:34 +0000
Subject: [PATCH] Fix for issue 4084 (Windows Service doesn't detect start-ds failure) Improve the code of windows service to poll the status of the server (whether is running or not). Improve some of the messages associated with the events that are sent to the windows service log. Improve the code that is in charge of starting the service (and the server) to help identify cases where the server startup is correctly launched but the startup itself fails (because for instance a port of the server is already in use).

---
 opends/src/build-tools/windows/EventLogMsg.mc |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/opends/src/build-tools/windows/EventLogMsg.mc b/opends/src/build-tools/windows/EventLogMsg.mc
index 9107928..bad9b7c 100644
--- a/opends/src/build-tools/windows/EventLogMsg.mc
+++ b/opends/src/build-tools/windows/EventLogMsg.mc
@@ -22,7 +22,7 @@
 ; * CDDL HEADER END
 ; *
 ; *
-; *      Copyright 2008 Sun Microsystems, Inc.
+; *      Copyright 2008-2010 Sun Microsystems, Inc.
 ; */
 ;/*
 ; * ==========================================================================
@@ -100,4 +100,11 @@
 Language     = English
 %1
 .
-
+MessageId    = 0x6
+Severity     = Error
+Facility     = OPENDS
+SymbolicName = WIN_EVENT_ID_SERVER_STOPPED_OUTSIDE_SCM
+Language     = English
+OpenDS stopped outside the Service Control Manager.
+OpenDS is in %1.
+.

--
Gitblit v1.10.0