 int interval = 1; 
do_startup(long long action,	   enum crmd_fsa_cause cause,	   enum crmd_fsa_state cur_state,	   enum crmd_fsa_input current_input,	   void *data){	FNIN();	fsa_input_register = 0; // zero out the regester		cl_log(LOG_INFO, "Register PID");	register_pid(PID_FILE, FALSE, shutdown);		cl_log_set_logfile(DAEMON_LOG);/*	if (crm_debug()) { */	cl_log_set_debugfile(DAEMON_DEBUG);/*  		cl_log_enable_stderr(FALSE); 		} */		ipc_clients = g_hash_table_new(&g_str_hash, &g_str_equal);		/* change the logging facility to the one used by heartbeat daemon */	fsa_cluster_conn = ll_cluster_new("heartbeat");		int facility;	cl_log(LOG_INFO, "Switching to Heartbeat logger");	if ((facility =	     fsa_cluster_conn->llc_ops->get_logfacility(		     fsa_cluster_conn)) > 0) {		cl_log_set_facility(facility);	}		int was_error = 0;	CRM_DEBUG2("Facility: %d", facility);		if(was_error == 0) {		CRM_DEBUG("Init server comms");		was_error = init_server_ipc_comms(CRM_SYSTEM_CRMD,						  crmd_client_connect,						  default_ipc_input_destroy);	}		if (was_error == 0) {		CRM_DEBUG("Finding our node name");		fsa_our_uname = fsa_cluster_conn->llc_ops->get_mynodeid(			fsa_cluster_conn);				if (fsa_our_uname == NULL) {			cl_log(LOG_ERR, "get_mynodeid() failed");			was_error = 1;		}		cl_log(LOG_INFO, "Hostname: %s", fsa_our_uname);	}	/* set up the timers */	dc_heartbeat     = (fsa_timer_t *)cl_malloc(sizeof(fsa_timer_t));	integration_timer= (fsa_timer_t *)cl_malloc(sizeof(fsa_timer_t));	election_trigger = (fsa_timer_t *)cl_malloc(sizeof(fsa_timer_t));	election_timeout = (fsa_timer_t *)cl_malloc(sizeof(fsa_timer_t));	shutdown_escalation_timmer = (fsa_timer_t *)		cl_malloc(sizeof(fsa_timer_t));	int interval = 1; // seconds between DC heartbeats	interval = interval * 1000;		election_trigger->source_id = -1;	election_trigger->period_ms = interval*4;	election_trigger->fsa_input = I_DC_TIMEOUT;	election_trigger->callback = timer_popped;	dc_heartbeat->source_id = -1;	dc_heartbeat->period_ms = interval;	dc_heartbeat->fsa_input = I_NULL;	dc_heartbeat->callback = do_dc_heartbeat;			election_timeout->source_id = -1;	election_timeout->period_ms = interval*6;	election_timeout->fsa_input = I_ELECTION_DC;	election_timeout->callback = timer_popped;	integration_timer->source_id = -1;	integration_timer->period_ms = interval*6;	integration_timer->fsa_input = I_INTEGRATION_TIMEOUT;	integration_timer->callback = timer_popped;		shutdown_escalation_timmer->source_id = -1;	shutdown_escalation_timmer->period_ms = interval*13;	shutdown_escalation_timmer->fsa_input = I_TERMINATE;	shutdown_escalation_timmer->callback = timer_popped;		/* set up the sub systems */	cib_subsystem = (struct crm_subsystem_s*)		cl_malloc(sizeof(struct crm_subsystem_s));		cib_subsystem->pid = 0;		cib_subsystem->respawn = 1;		cib_subsystem->path = cl_strdup(BIN_DIR);	cib_subsystem->name = cl_strdup(CRM_SYSTEM_CIB);	cib_subsystem->command = BIN_DIR"/cib";	cib_subsystem->flag = R_CIB_CONNECTED;		te_subsystem = (struct crm_subsystem_s*)		cl_malloc(sizeof(struct crm_subsystem_s));		te_subsystem->pid = 0;		te_subsystem->respawn = 1;		te_subsystem->path = cl_strdup(BIN_DIR);	te_subsystem->name = cl_strdup(CRM_SYSTEM_TENGINE);	te_subsystem->command = BIN_DIR"/tengine";	te_subsystem->flag = R_TE_CONNECTED;		pe_subsystem = (struct crm_subsystem_s*)		cl_malloc(sizeof(struct crm_subsystem_s));		pe_subsystem->pid = 0;		pe_subsystem->respawn = 1;		pe_subsystem->path = cl_strdup(BIN_DIR);	pe_subsystem->name = cl_strdup(CRM_SYSTEM_PENGINE);	pe_subsystem->command = BIN_DIR"/pengine";	pe_subsystem->flag = R_PE_CONNECTED;		if(was_error)		FNRET(I_FAIL);		FNRET(I_NULL);}
8182	/local/tlutelli/issta_data/temp/c/2005_temp/2005/8182/7b562a6852f996544bfc53bcd27e145887c263f7/control.c/clean/crm/crmd/control.c