pcmk_children 47 daemons/pacemakerd/pcmkd_subdaemons.c static pcmk_child_t pcmk_children[] = { pcmk_children 132 daemons/pacemakerd/pcmkd_subdaemons.c for (int i = 0; i < PCMK__NELEM(pcmk_children); i++) { pcmk_children 133 daemons/pacemakerd/pcmkd_subdaemons.c if (!pcmk_children[i].active_before_startup) { pcmk_children 137 daemons/pacemakerd/pcmkd_subdaemons.c int rc = child_liveness(&pcmk_children[i]); pcmk_children 144 daemons/pacemakerd/pcmkd_subdaemons.c if (pcmk_children[i].respawn) { pcmk_children 145 daemons/pacemakerd/pcmkd_subdaemons.c crm_err("%s[%lld] terminated%s", pcmk_children[i].name, pcmk_children 146 daemons/pacemakerd/pcmkd_subdaemons.c (long long) PCMK__SPECIAL_PID_AS_0(pcmk_children[i].pid), pcmk_children 150 daemons/pacemakerd/pcmkd_subdaemons.c crm_notice("%s[%lld] terminated%s", pcmk_children[i].name, pcmk_children 151 daemons/pacemakerd/pcmkd_subdaemons.c (long long) PCMK__SPECIAL_PID_AS_0(pcmk_children[i].pid), pcmk_children 154 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_process_exit(&(pcmk_children[i])); pcmk_children 282 daemons/pacemakerd/pcmkd_subdaemons.c static int phase = PCMK__NELEM(pcmk_children) - 1; pcmk_children 285 daemons/pacemakerd/pcmkd_subdaemons.c if (phase == PCMK__NELEM(pcmk_children) - 1) { pcmk_children 291 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_child_t *child = &(pcmk_children[phase]); pcmk_children 657 daemons/pacemakerd/pcmkd_subdaemons.c for (i = 0; i < PCMK__NELEM(pcmk_children); i++) { pcmk_children 659 daemons/pacemakerd/pcmkd_subdaemons.c if ((pcmk_children[i].endpoint == NULL) pcmk_children 660 daemons/pacemakerd/pcmkd_subdaemons.c || (pcmk_children[i].respawn_count < 0)) { pcmk_children 664 daemons/pacemakerd/pcmkd_subdaemons.c rc = child_liveness(&pcmk_children[i]); pcmk_children 673 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].respawn_count = rounds; pcmk_children 676 daemons/pacemakerd/pcmkd_subdaemons.c if (pcmk_children[i].pid == PCMK__SPECIAL_PID) { pcmk_children 681 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].endpoint); pcmk_children 683 daemons/pacemakerd/pcmkd_subdaemons.c } else if (pcmk_children[i].respawn_count == WAIT_TRIES) { pcmk_children 692 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].name, WAIT_TRIES - 1); pcmk_children 700 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].name, pcmk_children 707 daemons/pacemakerd/pcmkd_subdaemons.c " attempt(s)", pcmk_children[i].endpoint, pcmk_children 708 daemons/pacemakerd/pcmkd_subdaemons.c WAIT_TRIES - pcmk_children[i].respawn_count); pcmk_children 713 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].name, pcmk_children 715 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].pid)); pcmk_children 716 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].respawn_count = -1; /* 0~keep watching */ pcmk_children 717 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].active_before_startup = true; pcmk_children 721 daemons/pacemakerd/pcmkd_subdaemons.c if (pcmk_children[i].respawn_count == WAIT_TRIES) { pcmk_children 724 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].endpoint, pcmk_children 726 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].pid)); pcmk_children 733 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].endpoint, pcmk_children 735 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].pid), pcmk_children 736 daemons/pacemakerd/pcmkd_subdaemons.c WAIT_TRIES - pcmk_children[i].respawn_count); pcmk_children 740 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].name, pcmk_rc_str(rc), rc); pcmk_children 749 daemons/pacemakerd/pcmkd_subdaemons.c for (i = 0; i < PCMK__NELEM(pcmk_children); i++) { pcmk_children 750 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].respawn_count = 0; /* restore pristine state */ pcmk_children 764 daemons/pacemakerd/pcmkd_subdaemons.c for (int i = 0; i < PCMK__NELEM(pcmk_children); i++) { pcmk_children 765 daemons/pacemakerd/pcmkd_subdaemons.c if (pcmk_children[i].pid != 0) { pcmk_children 770 daemons/pacemakerd/pcmkd_subdaemons.c start_child(&(pcmk_children[i])); pcmk_children 795 daemons/pacemakerd/pcmkd_subdaemons.c for (int i = 0; i < PCMK__NELEM(pcmk_children); i++) { pcmk_children 796 daemons/pacemakerd/pcmkd_subdaemons.c if (!pcmk_children[i].needs_retry || pcmk_children[i].pid != 0) { pcmk_children 800 daemons/pacemakerd/pcmkd_subdaemons.c crm_notice("Respawning cluster-based subdaemon: %s", pcmk_children[i].name); pcmk_children 801 daemons/pacemakerd/pcmkd_subdaemons.c if (start_child(&pcmk_children[i])) { pcmk_children 802 daemons/pacemakerd/pcmkd_subdaemons.c pcmk_children[i].needs_retry = false;