the_subsystem 745 crmd/control.c struct crm_subsystem_s *the_subsystem = NULL; the_subsystem 757 crmd/control.c the_subsystem = pe_subsystem; the_subsystem 760 crmd/control.c the_subsystem = te_subsystem; the_subsystem 763 crmd/control.c the_subsystem = cib_subsystem; the_subsystem 766 crmd/control.c if (the_subsystem != NULL) { the_subsystem 767 crmd/control.c the_subsystem->source = NULL; the_subsystem 768 crmd/control.c the_subsystem->client = NULL; the_subsystem 769 crmd/control.c crm_info("Received HUP from %s:[%d]", the_subsystem->name, the_subsystem->pid); the_subsystem 52 crmd/subsystems.c stop_subsystem(struct crm_subsystem_s *the_subsystem, gboolean force_quit) the_subsystem 56 crmd/subsystems.c crm_trace("Stopping sub-system \"%s\"", the_subsystem->name); the_subsystem 57 crmd/subsystems.c clear_bit(fsa_input_register, the_subsystem->flag_required); the_subsystem 59 crmd/subsystems.c if (the_subsystem->pid <= 0) { the_subsystem 60 crmd/subsystems.c crm_trace("Client %s not running", the_subsystem->name); the_subsystem 65 crmd/subsystems.c if (is_set(fsa_input_register, the_subsystem->flag_connected) == FALSE) { the_subsystem 67 crmd/subsystems.c crm_debug("Stopping %s before it had connected", the_subsystem->name); the_subsystem 79 crmd/subsystems.c if (kill(the_subsystem->pid, quit_signal) == 0) { the_subsystem 80 crmd/subsystems.c crm_info("Sent -TERM to %s: [%d]", the_subsystem->name, the_subsystem->pid); the_subsystem 81 crmd/subsystems.c the_subsystem->sent_kill = TRUE; the_subsystem 84 crmd/subsystems.c crm_perror(LOG_ERR, "Sent -TERM to %s: [%d]", the_subsystem->name, the_subsystem->pid); the_subsystem 91 crmd/subsystems.c start_subsystem(struct crm_subsystem_s * the_subsystem) the_subsystem 100 crmd/subsystems.c crm_info("Starting sub-system \"%s\"", the_subsystem->name); the_subsystem 102 crmd/subsystems.c if (the_subsystem->pid > 0) { the_subsystem 104 crmd/subsystems.c the_subsystem->name, (int)the_subsystem->pid); the_subsystem 115 crmd/subsystems.c if (access(the_subsystem->path, F_OK | X_OK) != 0) { the_subsystem 116 crmd/subsystems.c crm_perror(LOG_ERR, "Cannot (access) exec %s", the_subsystem->path); the_subsystem 120 crmd/subsystems.c s_res = stat(the_subsystem->command, &buf); the_subsystem 122 crmd/subsystems.c crm_perror(LOG_ERR, "Cannot (stat) exec %s", the_subsystem->command); the_subsystem 133 crmd/subsystems.c mainloop_child_add(pid, 0, the_subsystem->name, the_subsystem, crmd_child_exit); the_subsystem 134 crmd/subsystems.c crm_trace("Client %s is has pid: %d", the_subsystem->name, pid); the_subsystem 135 crmd/subsystems.c the_subsystem->pid = pid; the_subsystem 147 crmd/subsystems.c the_subsystem->command, the_subsystem->name, (int)getpid()); the_subsystem 162 crmd/subsystems.c opts[0] = strdup(the_subsystem->command); the_subsystem 166 crmd/subsystems.c (void)execvp(the_subsystem->command, opts); the_subsystem 170 crmd/subsystems.c crm_perror(LOG_ERR, "FATAL: Cannot exec %s", the_subsystem->command);