directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r995942 - /directory/installers/trunk/apacheds-noarch/src/main/java/org/apache/directory/server/Service.java
Date Fri, 10 Sep 2010 19:14:32 GMT
Author: kayyagari
Date: Fri Sep 10 19:14:32 2010
New Revision: 995942

URL: http://svn.apache.org/viewvc?rev=995942&view=rev
Log:
o updated stop() method to stop various other running servers

Modified:
    directory/installers/trunk/apacheds-noarch/src/main/java/org/apache/directory/server/Service.java

Modified: directory/installers/trunk/apacheds-noarch/src/main/java/org/apache/directory/server/Service.java
URL: http://svn.apache.org/viewvc/directory/installers/trunk/apacheds-noarch/src/main/java/org/apache/directory/server/Service.java?rev=995942&r1=995941&r2=995942&view=diff
==============================================================================
--- directory/installers/trunk/apacheds-noarch/src/main/java/org/apache/directory/server/Service.java
(original)
+++ directory/installers/trunk/apacheds-noarch/src/main/java/org/apache/directory/server/Service.java
Fri Sep 10 19:14:32 2010
@@ -496,8 +496,31 @@ public class Service implements DaemonAp
     {
 
         // Stops the server
-        ldapServer.stop();
+        if( ldapServer != null )
+        {
+            ldapServer.stop();
+        }
+        
+        if( kdcServer != null )
+        {
+            kdcServer.stop();
+        }
 
+        if( changePwdServer != null )
+        {
+            changePwdServer.stop();
+        }
+        
+        if( ntpServer != null )
+        {
+            ntpServer.stop();
+        }
+        
+        if( httpServer != null )
+        {
+            httpServer.stop();
+        }
+        
         // We now have to stop the underlaying DirectoryService
         ldapServer.getDirectoryService().shutdown();
     }



Mime
View raw message