| 554 | } |
| 555 | |
| 556 | gboolean |
| 557 | startCib(const char *filename) |
| 558 | { |
| 559 | gboolean active = FALSE; |
| 560 | xmlNode *cib = readCibXmlFile(cib_root, filename, !preserve_status); |
| 561 | |
| 562 | CRM_ASSERT(cib != NULL); |
| 563 | |
| 564 | if (activateCibXml(cib, TRUE, "start") == 0) { |
| 565 | int port = 0; |
| 566 | const char *port_s = NULL; |
| 567 | |
| 568 | active = TRUE; |
| 569 | |
| 570 | cib_read_config(config_hash, cib); |
| 571 | |
| 572 | port_s = crm_element_value(cib, "remote-tls-port"); |
| 573 | if (port_s) { |
| 574 | port = crm_parse_int(port_s, "0"); |
| 575 | remote_tls_fd = init_remote_listener(port, TRUE); |
| 576 | } |
| 577 | |
| 578 | port_s = crm_element_value(cib, "remote-clear-port"); |
| 579 | if (port_s) { |
| 580 | port = crm_parse_int(port_s, "0"); |
| 581 | remote_fd = init_remote_listener(port, FALSE); |
| 582 | } |
| 583 | |
| 584 | crm_info("CIB Initialization completed successfully"); |
| 585 | } |
| 586 | |
| 587 | return active; |
| 588 | } |
no test coverage detected