From eb0139c8edc492a2ee316fd0624ba1069390bf42 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Wed, 01 Jul 2009 11:35:07 +0000
Subject: [PATCH] Follow up to the fix for issue 4081 (start-ds and stop-ds fails on Mac OS X with latest JVM).

---
 opends/resource/bin/stop-ds |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/opends/resource/bin/stop-ds b/opends/resource/bin/stop-ds
index 6f18347..f8b806b 100755
--- a/opends/resource/bin/stop-ds
+++ b/opends/resource/bin/stop-ds
@@ -164,7 +164,7 @@
     EXIT_CODE=${?}
     if test ${EXIT_CODE} -eq 0
     then
-      "${OPENDS_JAVA_BIN}" org.opends.server.tools.WaitForFileDelete \
+      "${OPENDS_JAVA_BIN}" -client org.opends.server.tools.WaitForFileDelete \
         --targetFile "${INSTANCE_ROOT}/logs/server.pid" \
         --logFile "${INSTANCE_ROOT}/logs/errors"
       EXIT_CODE=${?}
@@ -225,5 +225,5 @@
 fi
 
 # If we've gotten here, then we should try to stop the server over LDAP.
-"${OPENDS_JAVA_BIN}" ${JAVA_ARGS} ${SCRIPT_NAME_ARG} \
+"${OPENDS_JAVA_BIN}" ${OPENDS_JAVA_ARGS} ${SCRIPT_NAME_ARG} \
   org.opends.server.tools.StopDS "${@}"

--
Gitblit v1.10.0