From fe2343005776d1d53a99b3826a2c0d5d2c0f500e Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Thu, 22 Feb 2007 13:56:04 +0000
Subject: [PATCH] Update the start-ds script and associated Directory Server code to ensure that the PID file is only written if the server is not already running.  If it's not being used to try to start the server, then just invoke the command without a PID file.  If it is trying to start the server but the server is already running, then exit with an error.

---
 opends/src/server/org/opends/server/messages/CoreMessages.java |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/opends/src/server/org/opends/server/messages/CoreMessages.java b/opends/src/server/org/opends/server/messages/CoreMessages.java
index 160a34f..365473e 100644
--- a/opends/src/server/org/opends/server/messages/CoreMessages.java
+++ b/opends/src/server/org/opends/server/messages/CoreMessages.java
@@ -6239,6 +6239,15 @@
 
 
   /**
+   * The message ID for the message that will be used as the description for the
+   * checkStartability command-line argument.  This does not take any arguments.
+   */
+  public static final int MSGID_DSCORE_DESCRIPTION_CHECK_STARTABILITY =
+       CATEGORY_MASK_CORE | SEVERITY_MASK_INFORMATIONAL | 596;
+
+
+
+  /**
    * Associates a set of generic messages with the message IDs defined
    * in this class.
    */
@@ -7553,6 +7562,9 @@
                     "Specifies the path to the file containing the " +
                     "information needed by the configuration handler to " +
                     "obtain the Directory Server configuration.");
+    registerMessage(MSGID_DSCORE_DESCRIPTION_CHECK_STARTABILITY,
+                    "Used to determine whether to write a server PID file " +
+                    "and attempt to start the server.");
     registerMessage(MSGID_DSCORE_DESCRIPTION_VERSION,
                     "Display Directory Server version information");
     registerMessage(MSGID_DSCORE_DESCRIPTION_FULLVERSION,

--
Gitblit v1.10.0