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 pacemakerd_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 extern time_t subdaemon_check_progress;
25
26 gboolean pacemakerd_read_config(void);
27
28 gboolean cluster_connect_cfg(void);
29 void cluster_disconnect_cfg(void);
30 int find_and_track_existing_processes(void);
31 gboolean init_children_processes(void *user_data);
32 void restart_cluster_subdaemons(void);
33 void pcmk_shutdown(int nsig);
34 void pcmkd_shutdown_corosync(void);
35 bool pcmkd_corosync_connected(void);