diff --git a/src/nebula/Nebula.cc b/src/nebula/Nebula.cc index 25f7d619ca..f109d89462 100644 --- a/src/nebula/Nebula.cc +++ b/src/nebula/Nebula.cc @@ -446,28 +446,6 @@ void Nebula::start() throw runtime_error("Could not start the Dispatch Manager"); } - // ---- Request Manager ---- - try - { - int rm_port = 0; - - nebula_configuration->get("PORT", rm_port); - - rm = new RequestManager(rm_port, log_location + "one_xmlrpc.log"); - } - catch (bad_alloc&) - { - NebulaLog::log("ONE", Log::ERROR, "Error starting RM"); - throw; - } - - rc = rm->start(); - - if ( rc != 0 ) - { - throw runtime_error("Could not start the Request Manager"); - } - // ---- Hook Manager ---- try { @@ -559,6 +537,28 @@ void Nebula::start() throw runtime_error("Could not start the Image Manager"); } + // ---- Request Manager ---- + try + { + int rm_port = 0; + + nebula_configuration->get("PORT", rm_port); + + rm = new RequestManager(rm_port, log_location + "one_xmlrpc.log"); + } + catch (bad_alloc&) + { + NebulaLog::log("ONE", Log::ERROR, "Error starting RM"); + throw; + } + + rc = rm->start(); + + if ( rc != 0 ) + { + throw runtime_error("Could not start the Request Manager"); + } + // ----------------------------------------------------------- // Load mads // -----------------------------------------------------------