You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by ka...@apache.org on 2010/09/10 21:14:32 UTC
svn commit: r995942 -
/directory/installers/trunk/apacheds-noarch/src/main/java/org/apache/directory/server/Service.java
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();
}