From 6d3f56fc888974eacd0645805e3dead753e255f3 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Wed, 07 May 2008 10:16:24 +0000
Subject: [PATCH] Fix for issue 3237 (On Windows, start-ds -Q doesn't start the server)

---
 opends/resource/bin/start-ds |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/opends/resource/bin/start-ds b/opends/resource/bin/start-ds
index a8c0a99..b379650 100755
--- a/opends/resource/bin/start-ds
+++ b/opends/resource/bin/start-ds
@@ -121,6 +121,17 @@
       org.opends.server.core.DirectoryServer \
       --configClass org.opends.server.extensions.ConfigFileHandler \
       --configFile "${CONFIG_FILE}" "${@}"
+  elif test ${EC} -eq 104
+  then
+    #
+    # run no detach quiet
+    #
+    echo $$ > "${PID_FILE}"
+    rm -f "${LOG_FILE}"
+    exec "${OPENDS_JAVA_BIN}" ${OPENDS_JAVA_ARGS} ${SCRIPT_NAME_ARG} \
+      org.opends.server.core.DirectoryServer \
+      --configClass org.opends.server.extensions.ConfigFileHandler \
+      --configFile "${CONFIG_FILE}" "${@}" > /dev/null
   else
     #
     # an error or the server is already started.  Just return the code provided

--
Gitblit v1.10.0