| | |
| | | (disableConnectionHandlers ? "disabled" : "enabled")); |
| | | System.setProperty( |
| | | "org.opends.server.DisableConnectionHandlers", |
| | | disableConnectionHandlers ? "true" : null); |
| | | disableConnectionHandlers ? "true" : "false"); |
| | | return startServer(); |
| | | } |
| | | |
| | |
| | | |
| | | try { |
| | | |
| | | org.opends.server.core.DirectoryServer directoryServer = |
| | | org.opends.server.core.DirectoryServer.getInstance(); |
| | | |
| | | // Bootstrap and start the Directory Server. |
| | | LOG.log(Level.FINER, "Bootstrapping directory server"); |
| | | directoryServer.bootstrapServer(); |
| | | |
| | | LOG.log(Level.FINER, "Initializing configuration"); |
| | | String configClass = "org.opends.server.extensions.ConfigFileHandler"; |
| | | String configPath = Utils.getPath( |
| | | installation.getCurrentConfigurationFile()); |
| | | directoryServer.initializeConfiguration(configClass, configPath); |
| | | |
| | | try { |
| | | |
| | | DebugLogPublisher startupDebugPublisher = |
| | |
| | | }); |
| | | ErrorLogger.addErrorLogPublisher(DN.NULL_DN, |
| | | startupErrorPublisher); |
| | | |
| | | AccessLogPublisher startupAccessPublisher = |
| | | TextAccessLogPublisher.getStartupTextAccessPublisher( |
| | | new ServerControllerTextWriter(output) { |
| | |
| | | e.toString()); |
| | | } |
| | | |
| | | org.opends.server.core.DirectoryServer directoryServer = |
| | | org.opends.server.core.DirectoryServer.getInstance(); |
| | | |
| | | // Bootstrap and start the Directory Server. |
| | | LOG.log(Level.FINER, "Bootstrapping directory server"); |
| | | directoryServer.bootstrapServer(); |
| | | |
| | | LOG.log(Level.FINER, "Initializing configuration"); |
| | | String configClass = "org.opends.server.extensions.ConfigFileHandler"; |
| | | String configPath = Utils.getPath( |
| | | installation.getCurrentConfigurationFile()); |
| | | directoryServer.initializeConfiguration(configClass, configPath); |
| | | |
| | | LOG.log(Level.FINER, "Invoking start server"); |
| | | directoryServer.startServer(); |
| | | |