From fa7c8f7b445628ebd7e6dde1535a06eb24f09d24 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Fri, 04 May 2007 21:15:31 +0000
Subject: [PATCH] Fix a number of issues with David's approval:

---
 opendj-sdk/opends/src/server/org/opends/server/tools/ConfigureWindowsService.java |   17 +++++++++++++----
 1 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/tools/ConfigureWindowsService.java b/opendj-sdk/opends/src/server/org/opends/server/tools/ConfigureWindowsService.java
index e4d6103..9a5988a 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/tools/ConfigureWindowsService.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/tools/ConfigureWindowsService.java
@@ -61,6 +61,8 @@
   private static final String CLASS_NAME =
     "org.opends.server.tools.ConfigureWindowsService";
 
+  private static final String DEBUG_OPTION = "--debug";
+
   private static int ERROR = 1;
 
   /**
@@ -387,7 +389,8 @@
         "create",
         serverRoot,
         getMessage(MSGID_WINDOWS_SERVICE_NAME, (Object[]) null),
-        getMessage(MSGID_WINDOWS_SERVICE_DESCRIPTION, serverRoot)
+        getMessage(MSGID_WINDOWS_SERVICE_DESCRIPTION, serverRoot),
+        DEBUG_OPTION
         };
     try
     {
@@ -427,6 +430,8 @@
     }
     catch (Throwable t)
     {
+      err.println("Fucking throwable: "+t);
+      t.printStackTrace();
       returnValue = SERVICE_ENABLE_ERROR;
       msg = getMessage(MSGID_WINDOWS_SERVICE_ENABLE_ERROR,
           (Object[])null);
@@ -453,7 +458,8 @@
     String[] cmd = {
         getBinaryFullPath(),
         "remove",
-        serverRoot
+        serverRoot,
+        DEBUG_OPTION
         };
     try
     {
@@ -493,6 +499,7 @@
     }
     catch (Throwable t)
     {
+      t.printStackTrace();
       returnValue = SERVICE_DISABLE_ERROR;
       msg = getMessage(MSGID_WINDOWS_SERVICE_DISABLE_ERROR,
           (Object[])null);
@@ -520,7 +527,8 @@
     String[] cmd = {
         getBinaryFullPath(),
         "cleanup",
-        serviceName
+        serviceName,
+        DEBUG_OPTION
         };
     try
     {
@@ -582,7 +590,8 @@
     String[] cmd = {
         getBinaryFullPath(),
         "state",
-        serverRoot
+        serverRoot,
+        DEBUG_OPTION
         };
     try
     {

--
Gitblit v1.10.0