Revision 2d46c598 src/nebula/Nebula.cc

View differences:

src/nebula/Nebula.cc
446 446
       throw runtime_error("Could not start the Dispatch Manager");
447 447
    }
448 448

  
449
    // ---- Request Manager ----
450
    try
451
    {
452
        int             rm_port = 0;
453

  
454
        nebula_configuration->get("PORT", rm_port);
455

  
456
        rm = new RequestManager(rm_port, log_location + "one_xmlrpc.log");
457
    }
458
    catch (bad_alloc&)
459
    {
460
        NebulaLog::log("ONE", Log::ERROR, "Error starting RM");
461
        throw;
462
    }
463

  
464
    rc = rm->start();
465

  
466
    if ( rc != 0 )
467
    {
468
       throw runtime_error("Could not start the Request Manager");
469
    }
470

  
471 449
    // ---- Hook Manager ----
472 450
    try
473 451
    {
......
559 537
       throw runtime_error("Could not start the Image Manager");
560 538
    }
561 539

  
540
    // ---- Request Manager ----
541
    try
542
    {
543
        int             rm_port = 0;
544

  
545
        nebula_configuration->get("PORT", rm_port);
546

  
547
        rm = new RequestManager(rm_port, log_location + "one_xmlrpc.log");
548
    }
549
    catch (bad_alloc&)
550
    {
551
        NebulaLog::log("ONE", Log::ERROR, "Error starting RM");
552
        throw;
553
    }
554

  
555
    rc = rm->start();
556

  
557
    if ( rc != 0 )
558
    {
559
       throw runtime_error("Could not start the Request Manager");
560
    }
561

  
562 562
    // -----------------------------------------------------------
563 563
    // Load mads
564 564
    // -----------------------------------------------------------

Also available in: Unified diff