From d9b2b9b7578edb367174b1a516f38feb6eb028ae Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Fri, 10 Nov 2006 23:45:06 +0000
Subject: [PATCH] Make a number of changes to administrative tools provided with OpenDS. These are all made under the umbrella of issue #994, but there are individual issues for each change.
---
opends/resource/bin/stop-ds | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/opends/resource/bin/stop-ds b/opends/resource/bin/stop-ds
index 5b62199..ea29e5b 100755
--- a/opends/resource/bin/stop-ds
+++ b/opends/resource/bin/stop-ds
@@ -93,6 +93,11 @@
export CLASSPATH
+# Specify the script name so that it may be provided in command-line usage.
+SCRIPT_NAME_ARG="-Dorg.opends.server.scriptName=stop-ds"
+export SCRIPT_NAME_ARG
+
+
# See if any arguments were provided and if a local PID file exists. If there
# were no arguments and there is a PID file, then try to stop the server with
# a kill command.
@@ -115,4 +120,5 @@
# If we've gotten here, then we should try to stop the server over LDAP.
-"${JAVA_BIN}" ${JAVA_ARGS} org.opends.server.tools.StopDS "${@}"
+"${JAVA_BIN}" ${JAVA_ARGS} ${SCRIPT_NAME_ARG} \
+ org.opends.server.tools.StopDS "${@}"
--
Gitblit v1.10.0