From 3af39927fd1bba93a2769cd5d6bc7b6c5f924c64 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.

---
 opends/src/admin/defn/org/opends/server/admin/std/GlobalConfiguration.xml |   26 +++++++++++++++++++++++++-
 1 files changed, 25 insertions(+), 1 deletions(-)

diff --git a/opends/src/admin/defn/org/opends/server/admin/std/GlobalConfiguration.xml b/opends/src/admin/defn/org/opends/server/admin/std/GlobalConfiguration.xml
index 0949ecb..2561d3d 100644
--- a/opends/src/admin/defn/org/opends/server/admin/std/GlobalConfiguration.xml
+++ b/opends/src/admin/defn/org/opends/server/admin/std/GlobalConfiguration.xml
@@ -702,7 +702,7 @@
 
   <adm:property name="idle-time-limit" mandatory="false" multi-valued="false">
     <adm:synopsis>
-      Specifies the maximum lenght of time that a client connection may remain
+      Specifies the maximum length of time that a client connection may remain
       established since its last completed operation.  A value of "0 seconds"
       indicates that no idle time limit will be enforced.
     </adm:synopsis>
@@ -722,5 +722,29 @@
     </adm:profile>
   </adm:property>
 
+  <adm:property name="save-config-on-successful-startup" mandatory="false">
+    <adm:synopsis>
+      Indicates whether the Directory Server should save a copy of its
+      configuration whenever the startup process completes successfully.  This
+      can ensure that the server provides a "last known good" configuration,
+      which can be used as a reference (or copied into the active config) if the
+      server fails to start with the current "active" configuration.
+    </adm:synopsis>
+    <adm:default-behavior>
+      <adm:defined>
+        <adm:value>true</adm:value>
+      </adm:defined>
+    </adm:default-behavior>
+    <adm:syntax>
+      <adm:boolean />
+    </adm:syntax>
+    <adm:profile name="ldap">
+      <ldap:attribute>
+        <ldap:oid>1.3.6.1.4.1.26027.1.1.485</ldap:oid>
+        <ldap:name>ds-cfg-save-config-on-successful-startup</ldap:name>
+      </ldap:attribute>
+    </adm:profile>
+  </adm:property>
+
 </adm:managed-object>
 

--
Gitblit v1.10.0