From 1faa6b83895dba3f275c72635f03518a6dc01007 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Thu, 22 Feb 2007 09:41:28 +0000
Subject: [PATCH] Fix for Issues #1025 and #1248 ('stop-ds.bat should be able to stop server even if LDAP port' and 'cannot stop server through status panel').
---
opends/resource/bin/stop-ds.bat | 14 +++++++++++++-
1 files changed, 13 insertions(+), 1 deletions(-)
diff --git a/opends/resource/bin/stop-ds.bat b/opends/resource/bin/stop-ds.bat
index 30b327c..d367548 100644
--- a/opends/resource/bin/stop-ds.bat
+++ b/opends/resource/bin/stop-ds.bat
@@ -23,10 +23,22 @@
rem CDDL HEADER END
rem
rem
-rem Portions Copyright 2006 Sun Microsystems, Inc.
+rem Portions Copyright 2006-2007 Sun Microsystems, Inc.
setlocal
set OPENDS_INVOKE_CLASS="org.opends.server.tools.StopDS"
set SCRIPT_NAME_ARG="-Dorg.opends.server.scriptName=stop-ds"
+set DIR_HOME=%~dP0..
+
+set ARGUMENTS=1
+if "%*" == "" set ARGUMENTS=0
+if "%ARGUMENTS%" == "1" goto stopWithLDAP
+if not exist "%DIR_HOME%\logs\server.pid" goto stopWithLDAP
+"%DIR_HOME%\lib\winlauncher.exe" stop "%DIR_HOME%"
+goto end
+
+:stopWithLDAP
call "%~dP0\_client-script.bat" %*
+
+:end
\ No newline at end of file
--
Gitblit v1.10.0