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/core/PluginConfigManager.java | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/opends/src/server/org/opends/server/core/PluginConfigManager.java b/opends/src/server/org/opends/server/core/PluginConfigManager.java
index 9fa66fc..e6ee05a 100644
--- a/opends/src/server/org/opends/server/core/PluginConfigManager.java
+++ b/opends/src/server/org/opends/server/core/PluginConfigManager.java
@@ -212,6 +212,8 @@
searchResultEntryPlugins = new DirectoryServerPlugin[0];
searchResultReferencePlugins = new DirectoryServerPlugin[0];
intermediateResponsePlugins = new DirectoryServerPlugin[0];
+ registeredPlugins =
+ new ConcurrentHashMap<DN,DirectoryServerPlugin>();
}
@@ -241,7 +243,7 @@
assert debugEnter(CLASS_NAME, "initializePluginConfig");
- registeredPlugins = new ConcurrentHashMap<DN,DirectoryServerPlugin>();
+ registeredPlugins.clear();
// Get the configuration entry that is the root of all the plugins in the
--
Gitblit v1.10.0