From 3504ca9d8071220d1e25da62e15334a4726f9318 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Tue, 27 Feb 2007 16:50:09 +0000
Subject: [PATCH] The proposed fix is to do a similar thing that what has been done by Neil for issue #1266: use a hidden option to check whether the server is already running or not. If the server is not running the message 'Server already stopped' is displayed, if the server is running the message 'Stopping Server... is displayed'.
---
opends/src/server/org/opends/server/messages/ToolMessages.java | 27 ++++++++++++++++++++++++++-
1 files changed, 26 insertions(+), 1 deletions(-)
diff --git a/opends/src/server/org/opends/server/messages/ToolMessages.java b/opends/src/server/org/opends/server/messages/ToolMessages.java
index da025b4..ae6eefb 100644
--- a/opends/src/server/org/opends/server/messages/ToolMessages.java
+++ b/opends/src/server/org/opends/server/messages/ToolMessages.java
@@ -7567,7 +7567,6 @@
CATEGORY_MASK_TOOLS | SEVERITY_MASK_INFORMATIONAL | 794;
-
/**
* The message ID for the message that will be used if the prompt trust
* manager is asked about trusting a client certificate. This does not take
@@ -7635,6 +7634,26 @@
CATEGORY_MASK_TOOLS | SEVERITY_MASK_SEVERE_ERROR | 801;
+ /**
+ * The message ID for the message that will be used when the server is
+ * already stopped. This does not take any arguments.
+ */
+ public static final int MSGID_STOPDS_SERVER_ALREADY_STOPPED =
+ CATEGORY_MASK_TOOLS | SEVERITY_MASK_INFORMATIONAL | 802;
+
+ /**
+ * The message ID for the message that will be used when the server is
+ * going to stopped. This does not take any arguments.
+ */
+ public static final int MSGID_STOPDS_GOING_TO_STOP =
+ CATEGORY_MASK_TOOLS | SEVERITY_MASK_INFORMATIONAL | 803;
+
+ /**
+ * The message ID for the message that will be used as the description for the
+ * checkStoppability command-line argument. This does not take any arguments.
+ */
+ public static final int MSGID_STOPDS_CHECK_STOPPABILITY =
+ CATEGORY_MASK_TOOLS | SEVERITY_MASK_INFORMATIONAL | 804;
/**
* Associates a set of generic messages with the message IDs defined in this
@@ -8846,6 +8865,8 @@
registerMessage(MSGID_STOPDS_DESCRIPTION_RESTART,
"Attempt to automatically restart the server once it has " +
"stopped");
+ registerMessage(MSGID_STOPDS_CHECK_STOPPABILITY,
+ "Used to determine whether the server is stopped or not.");
registerMessage(MSGID_STOPDS_DESCRIPTION_STOP_TIME,
"Time to begin the shutdown in YYYYMMDDhhmmss format " +
"(local time)");
@@ -8907,6 +8928,10 @@
registerMessage(MSGID_STOPDS_INVALID_RESPONSE_TYPE,
"ERROR: Expected an add response message but got a %s " +
"message instead.");
+ registerMessage(MSGID_STOPDS_SERVER_ALREADY_STOPPED,
+ "Server already stopped.");
+ registerMessage(MSGID_STOPDS_GOING_TO_STOP,
+ "Stopping Server...\n");
registerMessage(MSGID_LDIFSEARCH_DESCRIPTION_LDIF_FILE,
--
Gitblit v1.10.0