1
2
3
4
5
6
7
8
9
10 #include <crm_internal.h>
11
12 #include <stdint.h>
13
14 #define MAX_RESPAWN 100
15
16 extern GMainLoop *mainloop;
17 extern struct qb_ipcs_service_handlers mcp_ipc_callbacks;
18 extern const char *pacemakerd_state;
19 extern gboolean running_with_sbd;
20 extern unsigned int shutdown_complete_state_reported_to;
21 extern gboolean shutdown_complete_state_reported_client_closed;
22 extern crm_trigger_t *shutdown_trigger;
23 extern crm_trigger_t *startup_trigger;
24
25 gboolean mcp_read_config(void);
26
27 gboolean cluster_connect_cfg(void);
28 void cluster_disconnect_cfg(void);
29 int find_and_track_existing_processes(void);
30 gboolean init_children_processes(void *user_data);
31 void restart_cluster_subdaemons(void);
32 void pcmk_shutdown(int nsig);
33 void pcmk_handle_ping_request(pcmk__client_t *c, xmlNode *msg, uint32_t id);
34 void pcmk_handle_shutdown_request(pcmk__client_t *c, xmlNode *msg, uint32_t id, uint32_t flags);
35 void pcmkd_shutdown_corosync(void);
36 bool pcmkd_corosync_connected(void);