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/messages/messages/config.properties |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/opends/src/messages/messages/config.properties b/opends/src/messages/messages/config.properties
index 51b3003..cc0b3ab 100644
--- a/opends/src/messages/messages/config.properties
+++ b/opends/src/messages/messages/config.properties
@@ -2131,3 +2131,20 @@
  '%s' is invalid.  An SMTP server value must have an IP address or a \
  resolvable name, and it may optionally be followed by a colon and an integer \
  value between 1 and 65535 to specify the server port number
+SEVERE_ERR_STARTOK_CANNOT_OPEN_FOR_READING_698=An error occurred while \
+ attempting to open the current configuration file %s for reading in order to \
+ copy it to the ".startok" file:  %s
+SEVERE_ERR_STARTOK_CANNOT_OPEN_FOR_WRITING_699=An error occurred while \
+ attempting to open file %s in order to write the ".startok" configuration \
+ file:  %s
+SEVERE_ERR_STARTOK_CANNOT_WRITE_700=An error occurred while attempting to \
+ copy the current configuration from file %s into temporary file %s for use \
+ as the ".startok" configuration file:  %s
+SEVERE_ERR_STARTOK_CANNOT_RENAME_701=An error occurred while attempting to \
+ rename file %s to %s for use as the ".startok" configuration file:  %s
+NOTICE_CONFIG_FILE_USING_STARTOK_FILE_702=The Directory Server is starting \
+ using the last known good configuration file %s rather than the active \
+ configuration file %s
+SEVERE_WARN_CONFIG_FILE_NO_STARTOK_FILE_703=No last known good configuration \
+ file %s exists.  The server will attempt to start using the active \
+ configuration file %s

--
Gitblit v1.10.0