From 3a2fb8fbf8b986016429073370d5fe41a23dc3c2 Mon Sep 17 00:00:00 2001
From: neil_a_wilson <neil_a_wilson@localhost>
Date: Sun, 02 Sep 2007 01:12:13 +0000
Subject: [PATCH] Update the server so that it has the ability to save a copy of its current configuration into a ".startok" file whenever it starts successfully.  The start-ds script and DirectoryEnvironmentConfig class have been updated to expose an option to try to start the server using this "last known good" configuration rather than the active config file.

---
 opendj-sdk/opends/src/server/org/opends/server/util/ServerConstants.java |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/util/ServerConstants.java b/opendj-sdk/opends/src/server/org/opends/server/util/ServerConstants.java
index 23fab11..336772f 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/util/ServerConstants.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/util/ServerConstants.java
@@ -2612,6 +2612,16 @@
 
 
   /**
+   * The name of the system property that can be used to indicate that the
+   * Directory Server should attempt to start using the last known good
+   * configuration, rather than the current active configuration.
+   */
+  public static final String PROPERTY_USE_LAST_KNOWN_GOOD_CONFIG =
+       "org.opends.server.UseLastKnownGoodConfiguration";
+
+
+
+  /**
    * The column at which to wrap long lines of output in the command-line tools.
    */
   public static final int MAX_LINE_WIDTH;

--
Gitblit v1.10.0